Comments (4)
Had the same issue here. This SO fix worked nicely.
from libyaml.
Thanks for the suggestion. I made the changes in the file include/yaml.h
:
/** The public API declaration. */
#if defined(__MINGW32__)
# define YAML_DECLARE(type) type
#elif _WIN32
# if defined(YAML_DECLARE_STATIC)
# define YAML_DECLARE(type) type
# elif defined(YAML_DECLARE_EXPORT)
# define YAML_DECLARE(type) __declspec(dllexport) type
# else
# define YAML_DECLARE(type) __declspec(dllimport) type
# endif
#else
# define YAML_DECLARE(type) type
#endif
Now everything compiles without any error. Here is the new output:
make
D:/install/MinGW64/bin/make all-recursive
make[1]: Entering directory 'G:/DEVELOP/yaml/yaml-0.1.7'
Making all in include
make[2]: Entering directory 'G:/DEVELOP/yaml/yaml-0.1.7/include'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory 'G:/DEVELOP/yaml/yaml-0.1.7/include'
Making all in src
make[2]: Entering directory 'G:/DEVELOP/yaml/yaml-0.1.7/src'
D:/install/Git/2.11.0/usr/bin/sh.exe ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -g -O2 -MT api.lo -MD -MP -MF .deps/api.Tpo -c -o api.lo api.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -g -O2 -MT api.lo -MD -MP -MF .deps/api.Tpo -c api.c -DDLL_EXPORT -DPIC -o .libs/api.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -g -O2 -MT api.lo -MD -MP -MF .deps/api.Tpo -c api.c -o api.o >/dev/null 2>&1
mv -f .deps/api.Tpo .deps/api.Plo
D:/install/Git/2.11.0/usr/bin/sh.exe ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -g -O2 -MT reader.lo -MD -MP -MF .deps/reader.Tpo -c -o reader.lo reader.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -g -O2 -MT reader.lo -MD -MP -MF .deps/reader.Tpo -c reader.c -DDLL_EXPORT -DPIC -o .libs/reader.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -g -O2 -MT reader.lo -MD -MP -MF .deps/reader.Tpo -c reader.c -o reader.o >/dev/null 2>&1
mv -f .deps/reader.Tpo .deps/reader.Plo
D:/install/Git/2.11.0/usr/bin/sh.exe ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -g -O2 -MT scanner.lo -MD -MP -MF .deps/scanner.Tpo -c -o scanner.lo scanner.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -g -O2 -MT scanner.lo -MD -MP -MF .deps/scanner.Tpo -c scanner.c -DDLL_EXPORT -DPIC -o .libs/scanner.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -g -O2 -MT scanner.lo -MD -MP -MF .deps/scanner.Tpo -c scanner.c -o scanner.o >/dev/null 2>&1
mv -f .deps/scanner.Tpo .deps/scanner.Plo
D:/install/Git/2.11.0/usr/bin/sh.exe ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -g -O2 -MT parser.lo -MD -MP -MF .deps/parser.Tpo -c -o parser.lo parser.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -g -O2 -MT parser.lo -MD -MP -MF .deps/parser.Tpo -c parser.c -DDLL_EXPORT -DPIC -o .libs/parser.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -g -O2 -MT parser.lo -MD -MP -MF .deps/parser.Tpo -c parser.c -o parser.o >/dev/null 2>&1
mv -f .deps/parser.Tpo .deps/parser.Plo
D:/install/Git/2.11.0/usr/bin/sh.exe ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -g -O2 -MT loader.lo -MD -MP -MF .deps/loader.Tpo -c -o loader.lo loader.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -g -O2 -MT loader.lo -MD -MP -MF .deps/loader.Tpo -c loader.c -DDLL_EXPORT -DPIC -o .libs/loader.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -g -O2 -MT loader.lo -MD -MP -MF .deps/loader.Tpo -c loader.c -o loader.o >/dev/null 2>&1
mv -f .deps/loader.Tpo .deps/loader.Plo
D:/install/Git/2.11.0/usr/bin/sh.exe ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -g -O2 -MT writer.lo -MD -MP -MF .deps/writer.Tpo -c -o writer.lo writer.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -g -O2 -MT writer.lo -MD -MP -MF .deps/writer.Tpo -c writer.c -DDLL_EXPORT -DPIC -o .libs/writer.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -g -O2 -MT writer.lo -MD -MP -MF .deps/writer.Tpo -c writer.c -o writer.o >/dev/null 2>&1
mv -f .deps/writer.Tpo .deps/writer.Plo
D:/install/Git/2.11.0/usr/bin/sh.exe ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -g -O2 -MT emitter.lo -MD -MP -MF .deps/emitter.Tpo -c -o emitter.lo emitter.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -g -O2 -MT emitter.lo -MD -MP -MF .deps/emitter.Tpo -c emitter.c -DDLL_EXPORT -DPIC -o .libs/emitter.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -g -O2 -MT emitter.lo -MD -MP -MF .deps/emitter.Tpo -c emitter.c -o emitter.o >/dev/null 2>&1
mv -f .deps/emitter.Tpo .deps/emitter.Plo
D:/install/Git/2.11.0/usr/bin/sh.exe ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -g -O2 -MT dumper.lo -MD -MP -MF .deps/dumper.Tpo -c -o dumper.lo dumper.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -g -O2 -MT dumper.lo -MD -MP -MF .deps/dumper.Tpo -c dumper.c -DDLL_EXPORT -DPIC -o .libs/dumper.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -g -O2 -MT dumper.lo -MD -MP -MF .deps/dumper.Tpo -c dumper.c -o dumper.o >/dev/null 2>&1
mv -f .deps/dumper.Tpo .deps/dumper.Plo
D:/install/Git/2.11.0/usr/bin/sh.exe ../libtool --tag=CC --mode=link gcc -g -O2 -release 0 -version-info 2:5:0 -o libyaml.la -rpath D:/install/libyaml/lib api.lo reader.lo scanner.lo parser.lo loader.lo writer.lo emitter.lo dumper.lo
libtool: link: warning: undefined symbols not allowed in x86_64-pc-mingw64 shared libraries
libtool: link: ar cru .libs/libyaml.a api.o reader.o scanner.o parser.o loader.o writer.o emitter.o dumper.o
libtool: link: ranlib .libs/libyaml.a
libtool: link: ( cd ".libs" && rm -f "libyaml.la" && cp -pR "../libyaml.la" "libyaml.la" )
make[2]: Leaving directory 'G:/DEVELOP/yaml/yaml-0.1.7/src'
Making all in .
make[2]: Entering directory 'G:/DEVELOP/yaml/yaml-0.1.7'
make[2]: Leaving directory 'G:/DEVELOP/yaml/yaml-0.1.7'
Making all in tests
make[2]: Entering directory 'G:/DEVELOP/yaml/yaml-0.1.7/tests'
gcc -DHAVE_CONFIG_H -I. -I.. -I../include -g -O2 -MT run-scanner.o -MD -MP -MF .deps/run-scanner.Tpo -c -o run-scanner.o run-scanner.c
mv -f .deps/run-scanner.Tpo .deps/run-scanner.Po
D:/install/Git/2.11.0/usr/bin/sh.exe ../libtool --tag=CC --mode=link gcc -g -O2 -o run-scanner.exe run-scanner.o ../src/libyaml.la
libtool: link: gcc -g -O2 -o .libs/run-scanner.exe run-scanner.o ../src/.libs/libyaml.a
gcc -DHAVE_CONFIG_H -I. -I.. -I../include -g -O2 -MT run-parser.o -MD -MP -MF .deps/run-parser.Tpo -c -o run-parser.o run-parser.c
mv -f .deps/run-parser.Tpo .deps/run-parser.Po
D:/install/Git/2.11.0/usr/bin/sh.exe ../libtool --tag=CC --mode=link gcc -g -O2 -o run-parser.exe run-parser.o ../src/libyaml.la
libtool: link: gcc -g -O2 -o .libs/run-parser.exe run-parser.o ../src/.libs/libyaml.a
gcc -DHAVE_CONFIG_H -I. -I.. -I../include -g -O2 -MT run-loader.o -MD -MP -MF .deps/run-loader.Tpo -c -o run-loader.o run-loader.c
mv -f .deps/run-loader.Tpo .deps/run-loader.Po
D:/install/Git/2.11.0/usr/bin/sh.exe ../libtool --tag=CC --mode=link gcc -g -O2 -o run-loader.exe run-loader.o ../src/libyaml.la
libtool: link: gcc -g -O2 -o .libs/run-loader.exe run-loader.o ../src/.libs/libyaml.a
gcc -DHAVE_CONFIG_H -I. -I.. -I../include -g -O2 -MT run-emitter.o -MD -MP -MF .deps/run-emitter.Tpo -c -o run-emitter.o run-emitter.c
mv -f .deps/run-emitter.Tpo .deps/run-emitter.Po
D:/install/Git/2.11.0/usr/bin/sh.exe ../libtool --tag=CC --mode=link gcc -g -O2 -o run-emitter.exe run-emitter.o ../src/libyaml.la
libtool: link: gcc -g -O2 -o .libs/run-emitter.exe run-emitter.o ../src/.libs/libyaml.a
gcc -DHAVE_CONFIG_H -I. -I.. -I../include -g -O2 -MT run-dumper.o -MD -MP -MF .deps/run-dumper.Tpo -c -o run-dumper.o run-dumper.c
mv -f .deps/run-dumper.Tpo .deps/run-dumper.Po
D:/install/Git/2.11.0/usr/bin/sh.exe ../libtool --tag=CC --mode=link gcc -g -O2 -o run-dumper.exe run-dumper.o ../src/libyaml.la
libtool: link: gcc -g -O2 -o .libs/run-dumper.exe run-dumper.o ../src/.libs/libyaml.a
gcc -DHAVE_CONFIG_H -I. -I.. -I../include -g -O2 -MT example-reformatter.o -MD -MP -MF .deps/example-reformatter.Tpo -c -o example-reformatter.o example-reformatter.c
mv -f .deps/example-reformatter.Tpo .deps/example-reformatter.Po
D:/install/Git/2.11.0/usr/bin/sh.exe ../libtool --tag=CC --mode=link gcc -g -O2 -o example-reformatter.exe example-reformatter.o ../src/libyaml.la
libtool: link: gcc -g -O2 -o .libs/example-reformatter.exe example-reformatter.o ../src/.libs/libyaml.a
gcc -DHAVE_CONFIG_H -I. -I.. -I../include -g -O2 -MT example-reformatter-alt.o -MD -MP -MF .deps/example-reformatter-alt.Tpo -c -o example-reformatter-alt.o example-reformatter-alt.c
mv -f .deps/example-reformatter-alt.Tpo .deps/example-reformatter-alt.Po
D:/install/Git/2.11.0/usr/bin/sh.exe ../libtool --tag=CC --mode=link gcc -g -O2 -o example-reformatter-alt.exe example-reformatter-alt.o ../src/libyaml.la
libtool: link: gcc -g -O2 -o .libs/example-reformatter-alt.exe example-reformatter-alt.o ../src/.libs/libyaml.a
gcc -DHAVE_CONFIG_H -I. -I.. -I../include -g -O2 -MT example-deconstructor.o -MD -MP -MF .deps/example-deconstructor.Tpo -c -o example-deconstructor.o example-deconstructor.c
mv -f .deps/example-deconstructor.Tpo .deps/example-deconstructor.Po
D:/install/Git/2.11.0/usr/bin/sh.exe ../libtool --tag=CC --mode=link gcc -g -O2 -o example-deconstructor.exe example-deconstructor.o ../src/libyaml.la
libtool: link: gcc -g -O2 -o .libs/example-deconstructor.exe example-deconstructor.o ../src/.libs/libyaml.a
gcc -DHAVE_CONFIG_H -I. -I.. -I../include -g -O2 -MT example-deconstructor-alt.o -MD -MP -MF .deps/example-deconstructor-alt.Tpo -c -o example-deconstructor-alt.o example-deconstructor-alt.c
mv -f .deps/example-deconstructor-alt.Tpo .deps/example-deconstructor-alt.Po
D:/install/Git/2.11.0/usr/bin/sh.exe ../libtool --tag=CC --mode=link gcc -g -O2 -o example-deconstructor-alt.exe example-deconstructor-alt.o ../src/libyaml.la
libtool: link: gcc -g -O2 -o .libs/example-deconstructor-alt.exe example-deconstructor-alt.o
../src/.libs/libyaml.a
make[2]: Leaving directory 'G:/DEVELOP/yaml/yaml-0.1.7/tests'
Making all in win32
make[2]: Entering directory 'G:/DEVELOP/yaml/yaml-0.1.7/win32'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory 'G:/DEVELOP/yaml/yaml-0.1.7/win32'
make[1]: Leaving directory 'G:/DEVELOP/yaml/yaml-0.1.7'
from libyaml.
Did you give those commands directly in the windows cmd ?
from libyaml.
It has been a long time, but I think I used Git Bash shell.
from libyaml.
Related Issues (20)
- error HOT 7
- Event based YAML parsing
- build: run ./configure fail, cannot build successfully HOT 2
- Find heap buffer overflow by running fuzz test HOT 29
- Error in `./run-emitter': double free or corruption (fasttop): 0x0000000000621760 *** HOT 1
- problem libyaml building on Ubuntu HOT 2
- Set permissions for Github Workflows HOT 1
- ./bootstrap fails on Ubuntu 20.04.5 LTS HOT 1
- heap-buffer-overflow in yaml_emitter_emit_flow_mapping_key function of emitter.c:810:27 HOT 2
- Add support of blank lines and comments (re)format support, because people seems has been fighting with these issues for ages: HOT 3
- run-emitter-test-suite: negative-size-param in `get_tag/memcpy`
- Security Audit of libyaml
- Add advance error reporting for custom write_handler()
- Add Meson build system
- `sprintf` is deprecated on MacOS if ASAN is enable.
- Some emojis are incorrectly not considered printable
- Error when build libyaml 0.2.5 for Centos 7.9. HOT 1
- Error when build libyaml 0.2.5 for Centos 7.9
- How is this CVE-2024-3205 affected? HOT 12
- traces failure of yaml_emitter_write_indicator HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libyaml.