Boost logo

Boost-Build :

Subject: [Boost-build] vcproj to boost.build
From: Andy Schweitzer (a.schweitzer.grps_at_[hidden])
Date: 2009-03-29 14:37:38


I am trying to convert a simple vcproj to a working bjam file. I can't
seem to pass LIBPATH to mscv linker, and I get link errors. Any idea how
to fix this? I looked the boost.build online doc and haven't seen a
direct explanation. Maybe I'm not looking carefully enough?

Here's my jamroot.jam:
exe fractionsX
        : ../fractions.cpp ../fractions_misc.cpp ../stdafx.cpp
        : <include>../../include
        : <include>C:/nan/boost/boost_1_38_0
        : <linkflags>"/LIBPATH:C:/nan/boost/boost_1_38_0/stage/lib"
;

And here's the output of bjam from same directory as jamroot.jam:
...
compile-c-c++ bin\msvc-9.0\debug\stdafx.obj
stdafx.cpp
msvc.link bin\msvc-9.0\debug\fractionsX.exe
LINK : fatal error LNK1104: cannot open file
'libboost_program_options-vc90-mt-gd-1_38.lib'

         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\fractionsX.exe"
@"bin\msvc-9.0\debug\fractionsX.exe.rsp"
         if %ERRORLEVEL% NEQ 0 EXIT %ERRORLEVEL%

...failed msvc.link bin\msvc-9.0\debug\fractionsX.exe...
...failed updating 1 target...

Thanks,

Andy


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