Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2002-11-25 05:29:27


Gennadiy E. Rozental wrote:
> Hi,
>
> I've changes Boost.Test Jamfile to add building dlls (and change the
> names).

That's great.

>Here it is:

[snip]

> 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"

This is little help, but everything compiles OK on Linux/gcc. Probably,
windows need some __dllimport specifier on cpp_main? (A random thought!).

- Volodya

 


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