Boost logo

Boost-Build :

From: Patrick Frants (gclbb-jamboost_at_[hidden])
Date: 2002-09-05 11:13:09

Rene Rivera <grafik666_at_[hidden]> wrote in

> [2002-09-05] Patrick Frants wrote:
>>Rene Rivera <grafik666_at_[hidden]> wrote in
>>> [2002-09-04] Rene Rivera wrote:
>>>>[2002-09-04] Patrick Frants wrote:
>>>>Taking alook at it now...
>>> Well after looking at it I'm not sure what your problem is.
>>> Duplicating the example on my machine, with a minor change, seems to
>>> work for me. I get the "-I ../IncludeDir" in the build commands. The
>>> minor change is that instead of "<include>$(SUBDIR)IncludeDir" it
>>> should be "<include>$(SUBDIR)/IncludeDir", but both ways worked for
>>> me also.
>>> Could you try and putting in this... in your Jamfiles to see what's
>>> going on...
>>> ECHO -- "$(SUBDIR)" -- ;
>>> If that ever prints out: "-- --", then that means the SUBDIR is
>>> getting set to empty, which would cause problems. For me in the
>>> project root it prints "-- . --" and in the subdir "-- .. --".
>>I was too fast with my previous reply, but the argument about not
>>inheriting any of the settings still applies...
>>For me it prints "-- . --" always. No matter wether I execute it from
>>the project root or the subdir. Here is the output with bjam -d2 for
>>both locations:
> More badness on my part, copied the output incorrectly accross
> machines...
>>from project-root:
>>: \BoostExample>bjam -d2
>>Jamrules: No such file or directory
>>-- . --
>>-- . --
>>-- SubDir --
> --^^^^^^^^^^^---- That is correct.
> So with my previous message you should have it working ;-)

It's not :-(

Now it correctly inherites all settings! But the includedir is wrong,
notice -I"..\..\IncludeDir". Somehow the $(SUBDIR) is expanded incorrectly.

C:\BoostExample\SubDir>bjam -d2
..\Jamrules: No such file or directory
-- . --
-- .. --
-- .. --
-- . --
...found 22 targets...
...updating 4 targets...
MkDir1 ..\SubDir\bin\server.exe\msvc\debug\runtime-link-static\threading-

mkdir ..\SubDir\bin\server.exe\msvc\debug\runtime-link-static

vc-C++ ..\SubDir\bin\server.exe\msvc\debug\runtime-link-static\threading-

CALL "C:\Program Files\Microsoft Visual Studio\VC98\bin\VCVARS32.BAT" >
"C:\Program Files\Microsoft Visual Studio\VC98\bin\cl" /Zm400 -nologo
-GX -c -D_CONSOLE -DWIN32 -D_DEBUG /Zi /Od /Ob0 /GX /GR /MTd -I"..
\SubDir" -I"." -I"..\..\IncludeDir" /Fd"..\SubDir
\bin\server.exe\msvc\debug\runtime-link-static\threading-multi\vc60.pdb" -
\main.obj" -Tp"main.cpp"

command-file-dump-1st ..\SubDir\bin\server.exe\msvc\debug\runtime-link-

echo "..\SubDir\bin\server.exe\msvc\debug\runtime-link-static
\threading-multi\main.obj" > "..\SubDir\bin\server.exe\msvc\debug\runtime-

vc-Link ..\SubDir\bin\server.exe\msvc\debug\runtime-link-static\threading-

CALL "C:\Program Files\Microsoft Visual Studio\VC98\bin\VCVARS32.BAT" >
"C:\Program Files\Microsoft Visual Studio\VC98\bin\link" /nologo
/DEBUG /out:"..\SubDir\bin\server.exe\msvc\debug\runtime-link-static
\threading-multi\server.exe" /LIBPATH:"C:\Program Fil
es\Microsoft Visual Studio\VC98\Lib" "advapi32.lib" @"..\SubDir\bin

...updated 4 targets...



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