Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-11-22 04:28:43


Dean Michael Berris wrote:

> On 11/22/06, Vladimir Prus <ghost_at_[hidden]> wrote:
>> On Wednesday 22 November 2006 01:43, Dean Michael Berris wrote:
>> > Hi Guys,
>> >
>> > Autolinking for the unit-test target works in Windows in MSVC, but it
>> > doesn't work in GCC 4.1 -- is this expected behavior?
>>
>> If by "autolinking" you mean the mechanism of linking to external
>> libraries by means of including their headers, then yes, this feature is
>> not present on gcc.
>>
>
> Okay, thanks for clearing that up.
>
>> > If so, how do I make my rules like:
>> >
>> > unit-test my_test : my_test.cpp ;
>> >
>> > Build and execute correctly?
>>
>> I don't know, since you haven't said what you want to link to. If that's
>> boost.test, then:
>>
>> using /boost : <path-to-boost-source-tree> ;

Doh, this should be:

        use-project /boost : <path-to-boost-source-tree> ;

Sorry,
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