jbeder / yaml-cpp

A YAML parser and emitter in C++
MIT License
4.92k stars 1.78k forks source link

New formal release needed for MinGW64 users #1150

Closed HunterZ closed 10 months ago

HunterZ commented 1 year ago

Package managers for both MSYS and VCPKG currently ship yaml-cpp version 0.7.0 based packages for MinGW64 because it is the latest formal release. Unfortunately this results in build errors due to issue #1026, which was fixed long after 0.7.0 released. Any chance of a new formal release so that people don't have to forego the benefit of package managers in order to use yaml-cpp in their MinGW64 projects? Thanks!

niva-xx commented 1 year ago

Hi HunterZ,

It seems that i have same error on v0.7.0 using cmake 3.25 and mingw64 under MSYS2, any idea to solve it without taking previous version ?

[ 21%] Linking CXX executable yaml-cpp-tests.exe
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/yaml-cpp-tests.dir/objects.a(error_messages_test.cpp.obj):error_messages_test.cpp:(.text$_ZN4YAML6detail4node9push_backERS1_St10shared_ptrINS0_13memory_holderEE[_ZN4YAML6detail4node9push_backERS1_St10shared_ptrINS0_13memory_holderEE]+0x7a): undefined reference to `__imp__ZN4YAML6detail4node8m_amountE'
collect2.exe: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/yaml-cpp-tests.dir/build.make:308: yaml-cpp-tests.exe] Error 1

Thanks!

HunterZ commented 1 year ago

0.7.0 is broken. It's unusable. It can't be fixed without rebuilding. Here is the fix that was made sometime after it released: https://github.com/jbeder/yaml-cpp/issues/1026#issuecomment-1122305522

WilliamTambellini commented 1 year ago

+1 for a new release

jbeder commented 10 months ago

Just pushed 0.8.0.