Boost logo

Boost-Build :

Subject: Re: [Boost-build] vcproj to boost.build
From: Vladimir Prus (ghost_at_[hidden])
Date: 2009-03-30 10:36:46


On Sunday 29 March 2009 22:37:38 Andy Schweitzer wrote:
> 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"

The ":" separate paramaters to the 'exe' function and the list of
properties that must be present when building a target is specified
using the 'requirements' parameter. Consequently, the above should be:

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

- 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