Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2003-03-11 10:20:06

Hi Ali,

> I have a library which requires linking to different system libraries
> for different systems and compilers. For Linux/GCC, I need
> GLU GL X11 Xext m
> and for Windows (both GCC and MSVC) I need
> gdi32 opengl32 comctl32 wsock32
> and for Windows/MSVC I additionally need
> kernel32 user32.
> I tried to understand "Conditional Properties" (in
> boost/tools/build/boost_built_v2.html) and looked at some of the
> master .jam files (in boost/tools/build/new) and deduced that the
> following type of syntax would do what I want in the Usage
> Requirements of my library.
> <os>LINUX:<find-shared-library>GLU
> (meaning, when the OS is LINUX, look for in the library
> path?)
> but this results in
> MkDir1 bin/gcc/debug/os-LINUX:<find-shared-library>GL

The problem is that <find-shared-library> is not supposed to be used by
users -- it's not even feature in V2. The docs should describe prebuilt
libraries, and the <library> property, which are the solution.

lib X11 : : <name>X11 ;
exe hello : hello.cpp : <os>LINUX:<library>X11 ;

Let me know if this works for you.

- Volodya


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