From: Reece Dunn (msclrhd_at_[hidden])
Date: 2005-11-14 21:46:40
Deane Yang wrote:
> I'm finally trying to learn how to use bjam, but it's not working.
> I'm using:
> VC++ Express 2005
> Now I do the following:
> 1) Open up vsvars32.bat
> 2) Chdir to boost/tools/build/v2/example/hello
> 3) Run "bjam --v2" (the "--v2" is not needed, right?)
You don't need to run vcvars32.bat to use VC with bjam - it will call
the correct version of vcvars32.bat automatically. The "--v2" is needed
within the Boost tree to inform Boost to use Boost.Build version 2 and
the Jamfile.v2 files.
> The resulting output is shown below. Note that the file
> "bin\msvc-8.0\debug\hello.obj.rsp" does in fact exist after running bjam.
> msvc.compile.c++ bin\msvc-8.0\debug\hello.obj
> cl : Command line error D8022 : cannot open
> call "C:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat"
> x86 >nul
> cl /Zm800 -nologo -TP /Z7 /Od /Ob0 /W4 /GR /MDd /Zc:forScope
> /Zc:wchar_t /Wp64 /wd4675 /EHs @"bin\msvc-8.0\debug\hello.obj.rsp" -c
> ...failed msvc.compile.c++ bin\msvc-8.0\debug\hello.obj...
Ok. The RSP file is being generated. Your version of bjam is outputting
the response file name in the @"..." correctly, so bjam doesn't appear
to be the problem. Like Rene, I have tried this with VC8 (using a VC8
bjam built via jam_src/build.jam and VC8 Professional) and got:
bash-2.05b$ bjam --v2 msvc-8.0
...found 9 targets...
...updating 4 targets...
...updated 4 targets...
bash-2.05b$ bjam --version
Boost.Build V2 (Milestone 10)
Can you try:
1. Executing the cl command above directly
2. Moving hello.obj.rsp to the current directory then replacing @"..."
3. Try @".\bin\msvc-8.0\debug\hello.obj.rsp"
My guess is that it is a VC Express issue. Does anyone else have VC
Express installed to reproduce this?
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