Boost logo

Boost-Build :

From: René Perlberg (perle5000_at_[hidden])
Date: 2008-03-19 07:55:22

Vladimir Prus <ghost_at_[hidden]> schrieb am Mon, 17 Mar 2008 06:55:14 +0100:

> Why are you defining 4 different variants? I think that _WIN32
> is defined by windos compilers automatically. As for conditional
> setting of NAT_DEBUG, the following should work:
> <target-os>NT:<define>NAT_DEBUG
> Let me know if that works for you.

After experiencing a little in the last days and reading the answers of
you and Josh everything works like a charme now.
My Jamroot:
use-project /natlibrary : src/ ;

   : requirements <include>include <variant>debug:<define>NAT_DEBUG
   : build-dir bin/

My Jamfile:
   : usage-requirements <include>../include

lib libnatlib
   : [ glob *.cpp ]
   : <os>NT:<find-shared-library>wsock32

You were right about the _WIN32 define, so there's no need to put that
into the Jamfile.
<target-os> doesn't work, but <os> did the job for me.
Now it's possible to create debug and release versions under linux and
using different compilers under windows via command line.

Thanks very much for your help .

Regards, René.

ICQ: 425724369
6. Ilmenauer Newcomerfestival:
e.sigma Technology AG:

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