|
Boost-Build : |
From: Michael Peterson (michael148_at_[hidden])
Date: 2004-09-04 17:03:56
Here's a really simple question:
I want to compile three files, test/main.cpp, test/NumberTest.cpp, and
/lib/Number.cpp. The jamfile, Jamfile.v2, In the test directory, is:
# FILE: Long\test\Jamfile.v2
project main
: requirements
<include>C:/local/sde/projects/cppunit-1.10.2/include
;
exe main
: main.cpp NumberTest.cpp ../lib/Number.cpp
;
But when I invoke bjam the compilation fails because it can't find a
header file. However, the file, _prolog.h, is in the default include
path (i.e., is under the Microsoft Include directory). Can someone help
me out with my configuration?
Cheers,
Michael
P.S. Here's the spooge from bjam...
C:\local\sde\projects\Build.environments\Long\>bjam --v2
...found 28 targets...
...updating 5 targets...
msvc.compile.c++ test\bin\msvc\debug\main.obj
main.cpp
msvc.compile.c++ test\bin\msvc\debug\NumberTest.obj
NumberTest.cpp
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\stlport/cstdio(23) : fatal error
C1083: Cannot open include file: 'stl/_prolog.h': No such file or
directory
call "c:\program files\microsoft visual
studio\vc98\bin\vcvars32.bat" > nul
cl /Zm800 -nologo -TP /Z7 /Od /Ob0 /GX /GR /MDd
-I"C:\local\sde\projects\cppunit-1.10.2\include" -c
-Fo"test\bin\msvc\debug\NumberTest.obj" "test\NumberTest.cpp"
...failed msvc.compile.c++ test\bin\msvc\debug\NumberTest.obj...
msvc.compile.c++ test\bin\msvc\debug\Number.obj
Number.cpp
C:\PROGRA~1\MICROS~3\VC98\INCLUDE\stlport/limits(24) : fatal error
C1083: Cannot open include file: 'stl/_prolog.h': No such file or
directory
call "c:\program files\microsoft visual
studio\vc98\bin\vcvars32.bat" > nul
cl /Zm800 -nologo -TP /Z7 /Od /Ob0 /GX /GR /MDd
-I"C:\local\sde\projects\cppunit-1.10.2\include" -c
-Fo"test\bin\msvc\debug\Number.obj" "test\..\lib\Number.cpp"
...failed msvc.compile.c++ test\bin\msvc\debug\Number.obj...
...skipped <ptest\bin\msvc\debug-rsp>main.rsp for lack of
<ptest\bin\msvc\debug>NumberTest.obj...
...skipped <ptest\bin\msvc\debug>main.exe for lack of
<ptest\bin\msvc\debug>NumberTest.obj...
...failed updating 2 targets...
...skipped 2 targets...
...updated 1 target...
C:\local\sde\projects\Build.environments\Long>
------=_NextPart_000_000C_01C49290.667F4820 Content-Type: text/html;
charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; charset=3Dus-ascii"=
>
<TITLE>Message</TITLE>
<META content=3D"MSHTML 6.00.2800.1458" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D609424621-04092004>Here's a =
really=20
simple question:</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D609424621-04092004></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D609424621-04092004>I want to=
compile=20
three files, test/main.cpp, test/NumberTest.cpp, and /lib/Number.cpp. The=20
jamfile, Jamfile.v2, In the test directory, is:</SPAN></FONT></DIV>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
<DIV><FONT face=3DArial size=3D2><SPAN class=3D609424621-04092004><EM># F=
ILE:=20
Long\test\Jamfile.v2</EM></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D609424621-04092004><EM>pro=
ject=20
main<BR> : requirements<BR> &nbs=
p;=20
<include>C:/local/sde/projects/cppunit-1.10.2/include<BR> &nbs=
p; =20
;</EM></SPAN></FONT></DIV>
<DIV><EM></EM> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D609424621-04092004><EM>exe=
=20
main<BR> : main.cpp NumberTest.cpp=20
../lib/Number.cpp<BR> ;</EM></SPAN></FONT></DIV></BLOCK=
QUOTE>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D609424621-04092004>But when =
I invoke=20
bjam the compilation fails because it can't find a header file. However, th=
e=20
file, _prolog.h, is in the default include path (i.e., is under the Microso=
ft=20
Include directory). Can someone help me out with my=20
configuration?</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D609424621-04092004></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D609424621-04092004>Cheers,</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D609424621-04092004></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D609424621-04092004>Michael</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D609424621-04092004>P.S. Here=
's the=20
spooge from bjam...</SPAN></FONT></DIV>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
<DIV><FONT face=3DArial=20
size=3D2><EM>C:\local\sde\projects\Build.environments\Long\>bjam=20
--v2<BR>...found 28 targets...<BR>...updating 5 targets...<BR>msvc.compil=
e.c++=20
test\bin\msvc\debug\main.obj<BR>main.cpp<BR>msvc.compile.c++=20
test\bin\msvc\debug\NumberTest.obj<BR>NumberTest.cpp<BR><STRONG>C:\PROGRA=
~1\MICROS~3\VC98\INCLUDE\stlport/cstdio(23)=20
: fatal error C1083: Cannot open include file: 'stl/_prolog.h': No such f=
ile=20
or directory</STRONG></EM></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><EM></EM></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><EM> call "c:\program=
=20
files\microsoft visual studio\vc98\bin\vcvars32.bat" > nul<BR>cl =
=20
/Zm800 -nologo -TP /Z7 /Od /Ob0 /GX /GR /MDd =20
-I"C:\local\sde\projects\cppunit-1.10.2\include" -c=20
-Fo"test\bin\msvc\debug\NumberTest.obj" =20
"test\NumberTest.cpp"</EM></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><EM></EM></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><EM>...failed msvc.compile.c++=20
test\bin\msvc\debug\NumberTest.obj...<BR>msvc.compile.c++=20
test\bin\msvc\debug\Number.obj<BR>Number.cpp<BR><STRONG>C:\PROGRA~1\MICRO=
S~3\VC98\INCLUDE\stlport/limits(24)=20
: fatal error C1083: Cannot open include file: 'stl/_prolog.h': No such f=
ile=20
or directory</STRONG></EM></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><EM></EM></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><EM> call "c:\program=
=20
files\microsoft visual studio\vc98\bin\vcvars32.bat" > nul<BR>cl =
=20
/Zm800 -nologo -TP /Z7 /Od /Ob0 /GX /GR /MDd =20
-I"C:\local\sde\projects\cppunit-1.10.2\include" -c=20
-Fo"test\bin\msvc\debug\Number.obj" =20
"test\..\lib\Number.cpp"</EM></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><EM></EM></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><EM>...failed msvc.compile.c++=20
test\bin\msvc\debug\Number.obj...<BR>...skipped=20
<ptest\bin\msvc\debug-rsp>main.rsp for lack of=20
<ptest\bin\msvc\debug>NumberTest.obj...<BR>...skipped=20
<ptest\bin\msvc\debug>main.exe for lack of=20
<ptest\bin\msvc\debug>NumberTest.obj...<BR>...failed updating 2=20
targets...<BR>...skipped 2 targets...<BR>...updated 1=20
target...</EM></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><EM></EM></FONT> </DIV>
<DIV><FONT face=3DArial=20
size=3D2><EM>C:\local\sde\projects\Build.environments\Long></EM></FONT=
></DIV></BLOCKQUOTE>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV></BODY></HTML>
------=_NextPart_000_000C_01C49290.667F4820--
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