Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-09-06 02:27:49


Hi Michael,

> 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?

....

> 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"

What's "default include path" and "Microsoft Include directory". The only
include paths which will be searched by the compiler above, are those
specified by "c:\program files\microsoft visual
studio\vc98\bin\vcvars32.bat". Are you sure the path to "stl/_prolog.h" is
there? I guess you're using STLport that you've installed yourself, so you
might have forgotten to update vcvars32.bat. You can either update it, or
add another <include> property to your project, with the path to the
STLPort includes.

HTH,
Volodya

 


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