[cfe-dev] Linker problems with clang on Windows using VC++ RTL and Boost
Edward Diener
eldlistmailingz at tropicsoft.com
Sun Oct 13 22:27:38 PDT 2013
I am trying to run the Boost type_traits tests using my own build of the
latest clang on Windows under VC++, and I am getting these linker errors:
"clang-linux.link
..\..\..\bin.v2\libs\type_traits\test\add_const_test.test\clang-linux-3.4\debug\add_const_test.exe
"C:/Programming/VersionControl/bclang/bin/Release/clang.exe" -o
"..\..\..\bin.v2\libs\type_traits\test\add_const_test.test\clang-linux-3.4\debug\add_const_test.exe"
"..\..\..\bin.v2\libs\type_traits\test\add_const_test.test\clang-linux-3.4\debug\add_const_test.obj"
-g
clang.exe: warning: argument unused during compilation: '-g'
add_const_test.obj : error LNK2019: unresolved external symbol __ZdlPv
referenced in function __ZNSt14error_categoryD0Ev
add_const_test.obj : error LNK2019: unresolved external symbol
___dso_handle referenced in function ___cxx_global_var_init
add_const_test.obj : error LNK2019: unresolved external symbol
___cxa_atexit referenced in function ___cxx_global_var_init
add_const_test.obj : error LNK2019: unresolved external symbol
__ZSt13_Winerror_mapi referenced in function
__ZNKSt22_System_error_category7messageEi
add_const_test.obj : error LNK2019: unresolved external symbol
__ZSt13_Syserror_mapi referenced in function
__ZNKSt22_System_error_category23default_error_conditionEi
add_const_test.obj : error LNK2019: unresolved external symbol
__ZSt14_Xlength_errorPKc referenced in function __ZNKSs5_XlenEv
add_const_test.obj : error LNK2019: unresolved external symbol
___cxa_begin_catch referenced in function ___clang_call_terminate
add_const_test.obj : error LNK2019: unresolved external symbol
__ZSt9terminatev referenced in function ___clang_call_terminate
add_const_test.obj : error LNK2019: unresolved external symbol __Znwj
referenced in function __ZSt9_AllocateIcEPT_jS1_
add_const_test.obj : error LNK2019: unresolved external symbol
__ZSt11_Xbad_allocv referenced in function __ZSt9_AllocateIcEPT_jS1_
add_const_test.obj : error LNK2019: unresolved external symbol
__ZSt14_Xout_of_rangePKc referenced in function __ZNKSs5_XranEv
add_const_test.obj : error LNK2001: unresolved external symbol
___cxa_pure_virtual
add_const_test.obj : error LNK2001: unresolved external symbol
__ZTVN10__cxxabiv117__class_type_infoE
add_const_test.obj : error LNK2001: unresolved external symbol
__ZTVN10__cxxabiv120__si_class_type_infoE
..\..\..\bin.v2\libs\type_traits\test\add_const_test.test\clang-linux-3.4\debug\add_const_test.exe
: fatal error LNK1120: 14 unresolved externals
clang.exe: error: linker command failed with exit code 1120 (use -v to
see invocation)"
Does anybody have an idea of why these errors are occurring ?
More information about the cfe-dev
mailing list