|
Boost-Build : |
From: Gennadiy E. Rozental (rogeeff_at_[hidden])
Date: 2002-11-25 05:05:10
Hi,
I've changes Boost.Test Jamfile to add building dlls (and change the
names). Here it is:
subproject libs/test/build ;
PRG_EXEC_MON_SOURCES =
execution_monitor
cpp_main
;
TEST_EXEC_MON_SOURCES =
execution_monitor
test_tools
unit_test_parameters
unit_test_log
unit_test_monitor
unit_test_result
unit_test_suite
test_main
;
UTF_SOURCES =
execution_monitor
test_tools
unit_test_parameters
unit_test_log
unit_test_monitor
unit_test_result
unit_test_suite
unit_test_main
;
template boost_test_lib
## sources ##
:
## requirements ##
: <sysinclude>$(BOOST_ROOT) <borland><*><cxxflags>-w-8080
## default build ##
: <threading>single/multi <runtime-link>static/dynamic
;
lib boost_prg_exec_monitor : <template>boost_test_lib
../src/$(PRG_EXEC_MON_SOURCES).cpp ;
dll boost_prg_exec_monitor : <template>boost_test_lib
../src/$(PRG_EXEC_MON_SOURCES).cpp ;
lib boost_test_exec_monitor : <template>boost_test_lib
../src/
$(TEST_EXEC_MON_SOURCES).cpp ;
dll boost_test_exec_monitor : <template>boost_test_lib
../src/
$(TEST_EXEC_MON_SOURCES).cpp ;
lib boost_unit_test_framework : <template>boost_test_lib
../src/$(UTF_SOURCES).cpp ;
dll boost_unit_test_framework : <template>boost_test_lib
../src/$(UTF_SOURCES).cpp ;
And here what I am getting:
vc-
Link ..\..\..\libs\test\build\bin\boost_prg_exec_monitor.dll\msvc\deb
ug\runtime-link-static\threading-
single\boost_prg_exec_monitor.dll ..\..\..\libs\test\build\bin\boost_
prg_exec_monitor.dll\msvc\debug\runtime-link-static\threading-
single\boost_prg_exec_monitor.lib
cpp_main.obj : error LNK2001: unresolved external symbol "int
__cdecl cpp_main(int,char * * const)" (?cpp_main@@YAHHQAPAD_at_Z)
..\..\..\libs\test\build\bin\boost_prg_exec_monitor.dll\msvc\debug\ru
ntime-link-static\threading-single\boost_prg_exec_monitor.dll :
fatal error LNK1120: 1 unresolved externals
CALL "C:\Compilers\Microsoft Visual Studio\VC98
\bin\VCVARS32.BAT" >nul
"C:\Compilers\Microsoft Visual Studio\VC98
\bin\link" /nologo /INCREMENTAL:NO /DEBUG /DLL /subsystem:console
/out:"..\..\..\libs\test\build\bin\boost_prg_exec_monitor.dll\msvc\d
ebug\runtime-link-static\threading-
single\boost_prg_exec_monitor.dll" /IMPLIB:"..\..\..\libs\test\build
\bin\boost_prg_exec_monitor.dll\msvc\debug\runtime-link-
static\threading-single\boost_prg_exec_monitor.lib"
@"..\..\..\libs\test\build\bin\boost_prg_exec_monitor.dll\msvc\debug\
runtime-link-static\threading-single\boost_prg_exec_monitor.CMD"
...failed vc-
Link ..\..\..\libs\test\build\bin\boost_prg_exec_monitor.dll\msvc\deb
ug\runtime-link-static\threading-
single\boost_prg_exec_monitor.dll ..\..\..\libs\test\build\bin\boost_
prg_exec_monitor.dll\msvc\debug\runtime-link-static\threading-
single\boost_prg_exec_monitor.lib...
And a lot of similar messages with different libraries/compilers
(msvc,gcc,bcc)
What I am doing wrong?
Gennadiy.
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk