open-license-manager / licensecc

Software licensing, copy protection in C++. It has few dependencies and it's cross-platform.
http://open-license-manager.github.io/licensecc/
BSD 3-Clause "New" or "Revised" License
947 stars 300 forks source link

Cannot compile in MSYS2 #138

Open Mebus opened 2 years ago

Mebus commented 2 years ago

Hallo folks,

for some reason I cannot compile your project in MSYS2 even though I have boost installed. Linking seems to fail. I attached the output. Can you help?

C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/msys64/mingw64/lib/libboost_filesystem-mt.a(directory.o):(.text$_ZN9gnu_cxx13new_allocatorIN5boost10filesystem18directory_iteratorEE8allocateEyPKv[_ZN9gnu_cxx13new_allocatorIN5boost10filesystem18directory_iteratorEE8allocateEyPKv]+0x41): undefined reference to std::__throw_bad_array_new_length()' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/msys64/mingw64/lib/libboost_program_options-mt.a(cmdline.o):(.text$_ZN9__gnu_cxx13new_allocatorIN5boost9function1ISt6vectorINS1_15program_options12basic_optionIcEESaIS6_EERS3_INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaISE_EEEEE8allocateEyPKv[_ZN9__gnu_cxx13new_allocatorIN5boost9function1ISt6vectorINS1_15program_options12basic_optionIcEESaIS6_EERS3_INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaISE_EEEEE8allocateEyPKv]+0x41): undefined reference tostd::throw_bad_array_new_length()' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/msys64/mingw64/lib/libboost_program_options-mt.a(options_description.o):(.text$_ZN9gnu_cxx13new_allocatorIN5boost10shared_ptrINS1_15program_options18option_descriptionEEEE8allocateEyPKv[_ZN9gnu_cxx13new_allocatorIN5boost10shared_ptrINS1_15program_options18option_descriptionEEEE8allocateEyPKv]+0x41): undefined reference to `std::throw_bad_array_new_length()' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/msys64/mingw64/lib/libboost_program_options-mt.a(options_description.o):(.text$_ZN9gnu_cxx13new_allocatorIN5boost10shared_ptrINS1_15program_options19options_descriptionEEEE8allocateEyPKv[_ZN9gnu_cxx13new_allocatorIN5boost10shared_ptrINS1_15program_options19options_descriptionEEEE8allocateEyPKv]+0x41): undefined reference to `std::throw_bad_array_new_length()' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/msys64/mingw64/lib/libboost_program_options-mt.a(variables_map.o):(.text$_ZN9__gnu_cxx13new_allocatorISt13_Rb_tree_nodeISt4pairIKNSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN5boost15program_options14variable_valueEEEE8allocateEyPKv[_ZN9gnu_cxx13new_allocatorISt13_Rb_tree_nodeISt4pairIKNSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN5boost15program_options14variable_valueEEEE8allocateEyPKv]+0x41): undefined reference to `std::throw_bad_array_new_length()' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/msys64/mingw64/lib/libboost_program_options-mt.a(variables_map.o):(.text$_ZN9__gnu_cxx13new_allocatorISt13_Rb_tree_nodeINSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE8allocateEyPKv[_ZN9__gnu_cxx13new_allocatorISt13_Rb_tree_nodeINSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE8allocateEyPKv]+0x41): more undefined references to `std::throw_bad_array_new_length()' follow collect2.exe: error: ld returned 1 exit status mingw32-make[2]: [extern\license-generator\src\license_generator\CMakeFiles\lccgen.dir\build.make:106: extern/license-generator/src/license_generator/lccgen.exe] Error 1 mingw32-make[1]: [CMakeFiles\Makefile2:1189: extern/license-generator/src/license_generator/CMakeFiles/lccgen.dir/all] Error 2 mingw32-make: *** [Makefile:165: all] Error 2

licensecc-compile-error.txt

Mebus