Boost logo

Boost-Build :

Subject: Re: [Boost-build] Linking static library against shared library
From: Gevorg Voskanyan (v_gevorg_at_[hidden])
Date: 2010-05-19 07:09:17


Anthony Foglia wrote:
> Gevorg Voskanyan wrote:
>>
>> alias lib-real-time
>> : [ lib rt ]
>> : <threading>single
>> ;
>>
>> alias lib-real-time ;
>>
>> Hope this one will work, at last.

> No it didn't work. With those definitions in the sysdefs.jam,
> and utilities defined as thus:

> lib utilities
> : [ glob src/*.cpp ]
> /sysdefs//boost-filesystem
> /sysdefs//lib-real-time #/<link>shared
> : <include>./include
> <link>static
> :
> : <include>./include
> <link>static
> ;

> I still end up linking trying to librt statically get the undefined reference error.

Strange, as a similar setup works for me just fine. Sorry, at this point I am out of ideas. Perhaps some Boost.Build expert could clarify if the above is supposed to work? Or what is the correct solution to the problem?

Thanks,
Gevorg


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