"Unresolved externals" building MSVC 6.0 boost_1_30_0
When trying to build boost_1_30_0 as follows: vcvars32.bat bjam "-sTOOLS=msvc" I get some link errors: cpp_main.obj : error LNK2001: unresolved external symbol "int __cdecl cpp_main(i nt,char * * const)" (?cpp_main@@YAHHQAPAD@Z) test_main.obj : error LNK2001: unresolved external symbol "int __cdecl test_main (int,char * * const)" (?test_main@@YAHHQAPAD@Z) unit_test_main.obj : error LNK2001: unresolved external symbol "class boost::uni t_test_framework::test_suite * __cdecl init_unit_test_suite(int,char * * const)" (?init_unit_test_suite@@YAPAVtest_suite@unit_test_framework@boost@@HQAPAD@Z) And the tool finishes telling me these not so great news: ...failed updating 12 targets... Well I'm new but after spending two days trying to work out what the heck goes on, I'm none the wiser!
--- In Boost-Users@yahoogroups.com, "Peter Hug"
When trying to build boost_1_30_0 as follows:
vcvars32.bat bjam "-sTOOLS=msvc"
I get some link errors:
cpp_main.obj : error LNK2001: unresolved external symbol "int __cdecl cpp_main(i nt,char * * const)" (?cpp_main@@YAHHQAPAD@Z) test_main.obj : error LNK2001: unresolved external symbol "int __cdecl test_main (int,char * * const)" (?test_main@@YAHHQAPAD@Z) unit_test_main.obj : error LNK2001: unresolved external symbol "class boost::uni t_test_framework::test_suite * __cdecl init_unit_test_suite (int,char * * const)"
(? init_unit_test_suite@@YAPAVtest_suite@unit_test_framework@boost@@HQAP AD@Z)
And the tool finishes telling me these not so great news:
...failed updating 12 targets...
Well I'm new but after spending two days trying to work out what
Build what? the heck
goes on, I'm none the wiser!
Above symbols are required by Boos.Test framework. What tests are trying to build? Gennadiy.
I'm getting the errors when building DLL versions of the following boost sub projects: prg_exec_monitor unit_test_framework The messages are: vc-Link libs\test\build\bin\boost_prg_exec_monitor.dll\msvc\release\runtime-link-sta tic\boost_prg_exec_monitor.dll libs\test\build\bin\boost_prg_exec_monitor.dll\msvc\release\runtime-link-sta tic\boost_prg_exec_monitor.lib cpp_main.obj : error LNK2001: unresolved external symbol "int __cdecl cpp_main(int,char * * const)" (?cpp_main@@YAHHQAPAD@Z) libs\test\build\bin\boost_prg_exec_monitor.dll\msvc\release\runtime-link-sta tic\boost_prg_exec_monitor.dll : fatal error LNK1120: 1 unresolved externals vc-Link libs\test\build\bin\boost_unit_test_framework.dll\msvc\release\runtime-link- static\boost_unit_test_framework.dll libs\test\build\bin\boost_unit_test_framework.dll\msvc\release\runtime-link- static\boost_unit_test_framework.lib unit_test_main.obj : error LNK2001: unresolved external symbol "class boost::unit_test_framework::test_suite * __cdecl init_unit_test_suite(int,char * * const)" (?init_unit_test_suite@@YAPAVtest_suite@unit_test_framework@boost@@HQAPAD@Z) libs\test\build\bin\boost_unit_test_framework.dll\msvc\release\runtime-link- static\boost_unit_test_framework.dll : fatal error LNK1120: 1 unresolved externals
--- In Boost-Users@yahoogroups.com, "Peter Hug"
I'm getting the errors when building DLL versions of the following boost sub projects:
prg_exec_monitor unit_test_framework
You couldn't build shared libraries from boost.Test sources at the moment on win32 platform. It's already fixed in cvs. Use static libs for now. Gennadiy.
participants (2)
-
Gennadiy E. Rozental
-
Peter Hug