Boost logo

Boost-Build :

Subject: Re: [Boost-build] Boost.jam issue
From: Reynolds, John (John.Reynolds_at_[hidden])
Date: 2009-01-30 14:27:15


Thanks Volodya, that put me on the right track, I used BOOST_ALL_DYN_LINK instead of BOOST_ALL_NO_LIB.

import boost ;

boost.use-project 1.35 ;

obj app.obj : app.cpp /boost /tools/crypto//md5 : <define>BOOST_ALL_DYN_LINK ;

exe app : app.obj : <library>/boost//filesystem <library>/boost//system <library>/tools/crypto//md5 ;

-----Original Message-----
From: boost-build-bounces_at_[hidden] [mailto:boost-build-bounces_at_[hidden]] On Behalf Of Vladimir Prus
Sent: 30 January 2009 18:47
To: Boost.Build developer's and user's list
Subject: Re: [Boost-build] Boost.jam issue

On Friday 30 January 2009 21:23:30 Reynolds, John wrote:
>
> In my experimentation with boost build I have an issue using
> contrib\boost.jam
>
> import boost ;
>
> boost.use-project 1.35 ;
>
> exe app : app.cpp /boost /tools/crypto//md5 :
> <library>/boost//program_options ;
>
> With /boost setup in user-config.jam
>
> I am getting the following error [ note the lib in front of the lib ]
>
> fatal error LNK1104: cannot open file 'libboost_program_options-vc80-mt-1_35.lib'
>
> Any ideas how to get around this.

Apparently, autolink is kicking in -- and by default it assumes static linking, whilst Boost.Build does shared linking by default. I'd recommend:

        <define>BOOST_ALL_NO_LIB

in requirement to disable autolink completely.

- Volodya
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build


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