Boost logo

Boost-Build :

From: Nicola Musatti (Nicola.Musatti_at_[hidden])
Date: 2007-03-19 18:50:21

Vladimir Prus wrote:
> On Monday 19 March 2007 18:52, David Abrahams wrote:
>> on Fri Mar 02 2007, Nicola Musatti <> wrote:
>>> Hallo,
>>> I'm trying to configure odbc32 as an external library in a Jamfile. This works
>>> fine for those compilers which have it in their default library path; for
>>> Borland I need to specify a location that is relative to where the compiler is
>>> installed. Currently I have it hard-coded as follows:
>>> lib odbc
>>> :
>>> : <name>odbc32
>>> <toolset>borland:<search>"C:/Program Files/Borland/CBuilder6/Lib/Psdk"
>>> ;
>>> However I'd like to refer to the path that's specified in my user-config.jam
>>> file. Is that possible?
>> IIRC there's a way to get your user-config.jam to be treated as a
>> regular Boost.Build module (but I don't remember what it is).
> There's no way -- user-config.jam is already treated exactly like
> Jamfile, and Jamroot inherit things from user-config.jam.
> Therefore, adding
> path-constant WHATEVER : WHATEVER ;
> in user-config.jam will allow one to write
> in all Jamfiles everywhere.

I see. I had hoped to be able to set up my library's Jamfile so that
users wouldn't be required to add library specific configuration to
their user-config.jam, especially since in this case the location of
odbc32.lib is not arbitrary, but fixed relative to the compiler's path.

Nicola Musatti

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at