Boost logo

Boost-Build :

From: Thorsten Ottosen (nesotto_at_[hidden])
Date: 2007-11-06 09:11:45


Renaud Lepere skrev:
> Hi,
>
>> lib bayesian : [ glob ../src/*.cpp ] : <define>DEZIDE_EXPORT=1
>> : <link>shared :
>> <define>DEZIDE_USE_DYNAMIC_LINKING=1 ;
>>
>>
>> (The docs at
>> http://www.boost.org/regression-logs/cs-win32_metacomm/doc/htm
>> l/bbv2/tutorial.html
>> seems to miss spaces around ":")
>>
>> Should this not work?
>
> I think you should not put the spaces
> and write something like
> lib bayesian : [ glob ../src/*.cpp ]
> : <define>DEZIDE_EXPORT=1
> <link>shared:<define>DEZIDE_USE_DYNAMIC_LINKING=1 ;
>
> The lib rule follows the syntax.
> http://www.boost.org/doc/html/bbv2/advanced.html#bbv2.main-target-rule-s
> yntax
>
> Putting the spaces around the ":" of conditionnal will mean something
> else.

Ok, think I got it. The lack of error messages could probably be improved.

To define two macros I have to write

   <link>shared:<define>XX=1 <link>shared:<define>YY=1

Anyway, many thanks.

-Thorsten

(I moved the _USE_DYNAMIC_LINKING macro to the Jamroot because it is
really a project wide setting.)


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