Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot compile in MSYS2 #138

Open
Mebus opened this issue Apr 14, 2022 · 0 comments
Open

Cannot compile in MSYS2 #138

Mebus opened this issue Apr 14, 2022 · 0 comments

Comments

@Mebus
Copy link

Mebus commented Apr 14, 2022

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$_ZN9__gnu_cxx13new_allocatorIN5boost10filesystem18directory_iteratorEE8allocateEyPKv[_ZN9__gnu_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 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$_ZN9__gnu_cxx13new_allocatorIN5boost10shared_ptrINS1_15program_options18option_descriptionEEEE8allocateEyPKv[_ZN9__gnu_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$_ZN9__gnu_cxx13new_allocatorIN5boost10shared_ptrINS1_15program_options19options_descriptionEEEE8allocateEyPKv[_ZN9__gnu_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_nodeISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN5boost15program_options14variable_valueEEEE8allocateEyPKv[_ZN9__gnu_cxx13new_allocatorISt13_Rb_tree_nodeISt4pairIKNSt7__cxx1112basic_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_nodeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE8allocateEyPKv[_ZN9__gnu_cxx13new_allocatorISt13_Rb_tree_nodeINSt7__cxx1112basic_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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant