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

MinGW undefined references to C++11 STL strings #75

Open
ark0f opened this issue May 2, 2020 · 0 comments
Open

MinGW undefined references to C++11 STL strings #75

ark0f opened this issue May 2, 2020 · 0 comments

Comments

@ark0f
Copy link

ark0f commented May 2, 2020

I used windows-gnu toolchain:

          C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: E:\ark0f\Programming\Rust\projects\project-sakura\target\debug\deps\libshaderc_sys-9ed1b06d472302b7.rlib(validate_builtins.cpp.obj):validate_builtins.cpp:(.text$_ZN8spvtools3val12_GLOBAL__N_117BuiltInsValidator20ValidateF32VecHelperERKNS0_10DecorationERKNS0_11InstructionEjRKSt8functionIF12spv_result_tRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEj.isra.0+0x496): undefined reference to `std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::basic_ostringstream()'
          C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: E:\ark0f\Programming\Rust\projects\project-sakura\target\debug\deps\libshaderc_sys-9ed1b06d472302b7.rlib(validate_builtins.cpp.obj):validate_builtins.cpp:(.text$_ZN8spvtools3val12_GLOBAL__N_117BuiltInsValidator14ValidateI32VecERKNS0_10DecorationERKNS0_11InstructionEjRKSt8functionIF12spv_result_tRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE.isra.0+0x187): undefined reference to `std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::basic_ostringstream()'
          C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: E:\ark0f\Programming\Rust\projects\project-sakura\target\debug\deps\libshaderc_sys-9ed1b06d472302b7.rlib(validate_builtins.cpp.obj):validate_builtins.cpp:(.text$_ZN8spvtools3val12_GLOBAL__N_117BuiltInsValidator14ValidateI32VecERKNS0_10DecorationERKNS0_11InstructionEjRKSt8functionIF12spv_result_tRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE.isra.0+0x32c): undefined reference to `std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::basic_ostringstream()'
          C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: E:\ark0f\Programming\Rust\projects\project-sakura\target\debug\deps\libshaderc_sys-9ed1b06d472302b7.rlib(validate_builtins.cpp.obj):validate_builtins.cpp:(.text$_ZN8spvtools3val12_GLOBAL__N_117BuiltInsValidator20ValidateF32ArrHelperERKNS0_10DecorationERKNS0_11InstructionEjRKSt8functionIF12spv_result_tRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEj.isra.0+0x26b): undefined reference to `std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::basic_ostringstream()'
          C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: E:\ark0f\Programming\Rust\projects\project-sakura\target\debug\deps\libshaderc_sys-9ed1b06d472302b7.rlib(validate_builtins.cpp.obj):validate_builtins.cpp:(.text$_ZN8spvtools3val12_GLOBAL__N_117BuiltInsValidator20ValidateF32ArrHelperERKNS0_10DecorationERKNS0_11InstructionEjRKSt8functionIF12spv_result_tRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEj.isra.0+0x432): undefined reference to `std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::basic_ostringstream()'
          C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: E:\ark0f\Programming\Rust\projects\project-sakura\target\debug\deps\libshaderc_sys-9ed1b06d472302b7.rlib(validate_builtins.cpp.obj):validate_builtins.cpp:(.text$_ZN8spvtools3val12_GLOBAL__N_117BuiltInsValidator33ValidateSingleBuiltInAtDefinitionERKNS0_10DecorationERKNS0_11InstructionE+0x1cc7): more undefined references to `std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::basic_ostringstream()' follow
          collect2.exe: error: ld returned 1 exit status
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