Boost logo

Boost-Build :

From: Reece Dunn (msclrhd_at_[hidden])
Date: 2005-11-11 17:48:56


Zhon Johansen wrote:
> After upgrading to the current version of Boost.build v2, my
> <define>_DEBUG is no longer working.
>
> I notice there is no -D_DEBUG in my cl.exe line. On the other hand I do
> see /c.

The <define> and <include> options are in a response file associated
with the cpp file. Thus, if you have test.cpp, the response file will be
in the build directory (e.g. bin/msvc-7.1/release/test.cpp.rsp).

Are you getting any build problems due to _DEBUG not being defined?

NOTE: You shouldn't need to specify _DEBUG as the debug/release settings
should be taken care of by the variants, e.g.:

    $ bjam debug

Volodya/Rene/Dave: Is there a reason why variant debug doesn't define
_DEBUG, but variant release defines NDEBUG. VC projects define _DEBUG
for release builds.

- Reece


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