Boost logo

Boost-Build :

From: scaringi_stephen_at_[hidden]
Date: 2006-02-01 11:14:51


Hello,

As you can tell from the subject, I'm new to BB. I'm looking at BB to
possibly convert some of our MS VS projects. I've checked out the latest
from CVS and compiled bjam:

C:\boost-build\example\hello>bjam --version
Boost.Build V2 (Milestone 10)
Boost.Jam 03.1.12

Running the simple hello example works fine. But when I add a <define> to
the jamfile, I don't see a /D flag on the command line. Here's the jamroot
file:

exe hello : hello.cpp : <define>TESTING ;

And here's the output from bjam:

C:\boost-build\example\hello>bjam -n
...found 9 targets...
...updating 2 targets...
msvc.compile.c++ bin\msvc\debug\hello.obj

    call "C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\bin\vcvars32.bat" >nul
cl /Zm800 -nologo -TP /Z7 /Od /Ob0 /W4 /GR /MDd /Zc:forScope /Zc:wchar_t
/Wp64 /GB /wd4675 /EHs @"bin\msvc\debug\hello.obj.rsp" -c
-Fo"bin\msvc\debug\hello.obj"

Shouldn't there be a /D "TESTING" argument passed to cl?

If I replace the <define>TESTING with <cxxflags>"/D \"TESTING\"", then it
shows up.

Thanks for any help you can provide,
-Stephen


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