List Info

Thread: Autolinking for unit-test not working for GCC 4.1 x86 Linux




Autolinking for unit-test not working for GCC 4.1 x86 Linux
user name
2006-11-22 09:28:43
Dean Michael Berris wrote:

> On 11/22/06, Vladimir Prus <ghostcs.msu.su> 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


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

about | contact  Other archives ( Real Estate discussion Medical topics )