|
Boost-Build : |
From: Patrick Frants (gclbb-jamboost_at_[hidden])
Date: 2002-09-05 10:58:33
Rene Rivera <grafik666_at_[hidden]> wrote in
news:20020905101656-r01010800-bfd6417c-0860-0108_at_12.100.89.43:
> [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:
from project-root:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXC:
\BoostExample>bjam -d2
Jamrules: No such file or directory
-- . --
-- . --
-- SubDir --
-- . --
-- . --
-- SubDir --
...found 20 targets...
...updating 3 targets...
vc-C++ SubDir\bin\server.exe\msvc\debug\runtime-link-static\main.obj
CALL "C:\Program Files\Microsoft Visual Studio\VC98\bin\VCVARS32.BAT" >
nul
"C:\Program Files\Microsoft Visual Studio\VC98\bin\cl" /Zm400 -nologo
-GX -c /Z7 /Od /Ob0 /GX /GR /MLd -I"SubDir" -Fo"SubDir\bin
\server.exe\msvc\debug\runtime-link-static\main.obj" -T
p"SubDir\main.cpp"
main.cpp
command-file-dump-1st SubDir\bin\server.exe\msvc\debug\runtime-link-static
\server.CMD
echo "SubDir\bin\server.exe\msvc\debug\runtime-link-static\main.obj" >
"SubDir\bin\server.exe\msvc\debug\runtime-link-static\server.CMD"
vc-Link SubDir\bin\server.exe\msvc\debug\runtime-link-static\server.exe
CALL "C:\Program Files\Microsoft Visual Studio\VC98\bin\VCVARS32.BAT" >
nul
"C:\Program Files\Microsoft Visual Studio\VC98\bin\link" /nologo
/DEBUG /out:"SubDir\bin\server.exe\msvc\debug\runtime-link-static
\server.exe" @"SubDir\bin\server.exe\msvc\debug\runti
me-link-static\server.CMD"
LINK : LNK6004: SubDir\bin\server.exe\msvc\debug\runtime-link-static
\server.exe not found or not built by the last incremental link; performing
full link
...updated 3 targets...
C:\BoostExample>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
from SubDir:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
C:\BoostExample\SubDir>bjam -d2
..\Jamrules: No such file or directory
-- . --
-- . --
...found 21 targets...
...updating 3 targets...
vc-C++ ..\SubDir\bin\server.exe\msvc\debug\runtime-link-static\main.obj
CALL "C:\Program Files\Microsoft Visual Studio\VC98\bin\VCVARS32.BAT" >
nul
"C:\Program Files\Microsoft Visual Studio\VC98\bin\cl" /Zm400 -nologo
-GX -c /Z7 /Od /Ob0 /GX /GR /MLd -I"..\SubDir" -I"." -Fo"..\SubDir
\bin\server.exe\msvc\debug\runtime-link-static\m
ain.obj" -Tp"main.cpp"
main.cpp
command-file-dump-1st ..\SubDir\bin\server.exe\msvc\debug\runtime-link-
static\server.CMD
echo "..\SubDir\bin\server.exe\msvc\debug\runtime-link-static
\main.obj" > "..\SubDir\bin\server.exe\msvc\debug\runtime-link-static
\server.CMD"
vc-Link ..\SubDir\bin\server.exe\msvc\debug\runtime-link-static\server.exe
CALL "C:\Program Files\Microsoft Visual Studio\VC98\bin\VCVARS32.BAT" >
nul
"C:\Program Files\Microsoft Visual Studio\VC98\bin\link" /nologo
/DEBUG /out:"..\SubDir\bin\server.exe\msvc\debug\runtime-link-static
\server.exe" @"..\SubDir\bin\server.exe\msvc\debug
\runtime-link-static\server.CMD"
LINK : LNK6004: ..\SubDir\bin\server.exe\msvc\debug\runtime-link-static
\server.exe not found or not built by the last incremental link; performing
full link
...updated 3 targets...
C:\BoostExample\SubDir>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
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