Is vc7 test unresolved external cpp_main still a problem?
The last reference to this failure I found in the archive was from Feb
19th. I got boost_1_30_0.zip from SourceForge yesterday. Have I missed an
update to something somewhere?
TIA
<bjam log>
...found 2392 targets...
...updating 28 targets...
FileClone libs\regex\build\bin-stage\boost_regex_debug.lib
1 file(s) copied.
FileClone libs\regex\build\bin-stage\boost_regex_debug.lib
1 file(s) copied.
FileClone libs\regex\build\bin-stage\boost_regex.lib
1 file(s) copied.
FileClone libs\regex\build\bin-stage\boost_regex.lib
1 file(s) copied.
vc-Link
libs\date_time\build\bin\boost_date_time.dll\vc7\debug\runtime-link-dynamic\boost_date_time.dll
libs\date_time\build\bin\boost_date_time.dll\vc7\debug\runtime-link-dynamic\boost_date_time.lib
vc-Link
libs\date_time\build\bin\boost_date_time.dll\vc7\release\runtime-link-dynamic\boost_date_time.dll
libs\date_time\build\bin\boost_date_time.dll\vc7\release\runtime-link-dynamic\boost_date_time.lib
LINK : warning LNK4089: all references to 'MSVCP71.dll' discarded by
/OPT:REF
vc-Link
libs\test\build\bin\boost_prg_exec_monitor.dll\vc7\debug\runtime-link-static\threading-single\boost_prg_exec_monitor.dll
libs\test\build\bin\boost_prg_exec_monitor.dll\vc7\debug\runtime-link-static\threading-single\boost_prg_exec_monitor.lib
cpp_main.obj : error LNK2019: unresolved external symbol "int __cdecl
cpp_main(int,char * * const)" (?cpp_main@@YAHHQAPAD@Z) referenced in
function "public: virtual int __thiscall `anonymous
namespace'::cpp_main_caller::function(void)"
(?function@cpp_main_caller@?A0xe9549083@@UAEHXZ)
libs\test\build\bin\boost_prg_exec_monitor.dll\vc7\debug\runtime-link-static\threading-single\boost_prg_exec_monitor.dll
: fatal error LNK1120: 1 unresolved externals
"link" /nologo /INCREMENTAL:NO /DEBUG /DLL /subsystem:console
/out:"libs\test\build\bin\boost_prg_exec_monitor.dll\vc7\debug\runtime-link-static\threading-single\boost_prg_exec_monitor.dll"
/IMPLIB:"libs\test\build\bin\boost_prg_exec_monitor.dll\vc7\debug\runtime-link-static\threading-single\boost_prg_exec_monitor.lib"
/LIBPATH:"C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\lib"
@"libs\test\build\bin\boost_prg_exec_monitor.dll\vc7\debug\runtime-link-static\threading-single\boost_prg_exec_monitor.CMD"
...failed vc-Link
libs\test\build\bin\boost_prg_exec_monitor.dll\vc7\debug\runtime-link-static\threading-single\boost_prg_exec_monitor.dll
libs\test\build\bin\boost_prg_exec_monitor.dll\vc7\debug\runtime-link-static\threading-single\boost_prg_exec_monitor.lib...
...skipped
dick.bridges@tais.com wrote:
The last reference to this failure I found in the archive was from Feb 19th. I got boost_1_30_0.zip from SourceForge yesterday. Have I missed an update to something somewhere?
IIRC, the problem is that you can't compile dll version of boost.test, try to use static version instead. I am using static boost.test libs in couple of projects, and have not seen any problems. HTH --Kirill
libs\date_time\build\bin\boost_date_time.dll\vc7\debug\runtime- link-dynamic\boost_date_time.dll
As I keep repeating DLL version of Boost.Test components is not available for NT platform at the moment. It's already fixed in Jamfile and mentioned in FAQ section. Use static linking instead. Gennadiy.
participants (3)
-
dick.bridges@tais.com
-
Gennadiy E. Rozental
-
Kirill Lapshin