Boost logo

Boost-Build :

Subject: Re: [Boost-build] statically link project with Boost libs in Cygwin/msvc
From: Andrej van der Zee (mavdzee_at_[hidden])
Date: 2009-06-12 03:58:51


Hi, Thanks for your quick reply, as always. Below the Jamfile for my executable and the ouput of bjam -d2. On Linux it statically links as I expect. On Cygwin/Windows/msvc it holds it dependencies on the boost libs. But I am not sure what to expect, since I am not so proficient on Windows. Thank you, Andrej $ cat Jamfile project : requirements <os>CYGWIN:<define>_WIN32_WINNT=0x0501 <os>CYGWIN:<library-path>/usr/local/lib ; exe cap2net : [ glob *.cpp ] /site-config//boost_regex /site-config//boost_serialization /site-config//boost_date_time : <link>static : <define>BOOST_REGEX_RECURSIVE ; install $(INSTALL_PATH)/bin : cap2net ; $ bjam -d2 ...patience... ...found 1196 targets... ...updating 2 targets... file bin\msvc-9.0\debug\link-static\threading-multi\cap2net.exe.rsp "bin/msvc-9.0/debug/link-static/threading-multi/main.obj" "boost_regex-vc90-mt-gd-1_38.lib" "boost_serialization-vc90-mt-gd-1_38.lib" "boost_date_time-vc90-mt-gd-1_38.lib" msvc.link bin/msvc-9.0/debug/link-static/threading-multi/cap2net.exe cmd.exe /S /C call "c:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" x86 ">nul" "&&" link /NOLOGO /INCREMENTAL:NO /DEBUG /subsystem:console /out:"bin\msvc-9.0\debug\link-static\threading-multi\cap2net.exe" /LIBPATH:"C:\cygwin\usr\local\lib" @"bin\msvc-9.0\debug\link-static\threading-multi\cap2net.exe.rsp" Creating library bin\msvc-9.0\debug\link-static\threading-multi\cap2net.lib and object bin\msvc-9.0\debug\link-static\threading-multi\cap2net.exp msvc.manifest bin/msvc-9.0/debug/link-static/threading-multi/cap2net.exe if test -e "bin/msvc-9.0/debug/link-static/threading-multi/cap2net.exe.manifest"; then cmd.exe /S /C call "c:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" x86 ">nul" "&&" mt -nologo -manifest "bin\msvc-9.0\debug\link-static\threading-multi\cap2net.exe.manifest" "-outputresource:bin\msvc-9.0\debug\link-static\threading-multi\cap2net.exe;1" fi common.copy /mbrace/bin/cap2net.exe cp "bin/msvc-9.0/debug/link-static/threading-multi/cap2net.exe" "/mbrace/bin/cap2net.exe" ...updated 2 targets...


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