Boost logo

Boost-Build :

From: Deane Yang (deane_yang_at_[hidden])
Date: 2005-11-14 22:46:33


One thing I noticed is that both you and Rene appear to be running
things inside cygwin. Does that matter at all? I would actually prefer
to be working within cygwin.

  Reece Dunn wrote:
> 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.

When I try running bjam without loading vsvars32.bat first, bjam does
not find vcvars32.bat or vsvars32.bat.

>
>> 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.
>
...
>>
>> 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
>> -Fo"bin\msvc-8.0\debug\hello.obj"
>>
>
> Can you try:
> 1. Executing the cl command above directly

It works. So I didn't bother with 2 and 3.

> 2. Moving hello.obj.rsp to the current directory then replacing @"..."
> with @"hello.obj.rsp"
> 3. Try @".\bin\msvc-8.0\debug\hello.obj.rsp"
>


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