Boost logo

Boost-Build :

From: Charles Brockman (cmbrockman_at_[hidden])
Date: 2008-02-04 19:42:54


In preparation for running some tests in the SVN trunk of ptr_container on
my Windows XP computer, I'd like to create a bjam.exe. (I tried bjam version
3.1.16 but without success.)

I followed the directions of http://www.boost.org/doc/html/jam/building.html
and invoked the /tools/jam/src/build.bat. Microsoft Visual Studio 2005 is
installed and apparently found by the build.bat.

Here's the partial output:

C:\Boost SVN\trunk\tools\jam\src>.\build.bat --debug
Setting environment for using Microsoft Visual Studio 2005 x86 tools.
###
### Using 'vc8' toolset.
###
C:\Boost SVN\trunk\tools\jam\src>rd /S /Q bootstrap
C:\Boost SVN\trunk\tools\jam\src>md bootstrap
C:\Boost SVN\trunk\tools\jam\src>cl /nologo /RTC1 /Zi /MTd /Fobootstrap/
/Fdboot
strap/ -DNT -DYYDEBUG -wd4996 kernel32.lib advapi32.lib user32.lib
/Febootstrap\
jam0 command.c compile.c debug.c execnt.c expand.c filent.c glob.c hash.c
hdrma
cro.c headers.c jam.c jambase.c jamgram.c lists.c make.c make1.c newstr.c
option
.c output.c parse.c pathunix.c regexp.c rules.c scan.c search.c subst.c
timestam
p.c variable.c modules.c strings.c filesys.c builtins.c pwd.c class.c
w32_getreg
.c native.c modules/set.c modules/path.c modules/regex.c
modules/property-set.c
 modules/sequence.c modules/order.c
/* snip */
execnt.c(29) : fatal error C1083: Cannot open include file: 'windows.h': No
such file or directory
/* snip */
Generating Code...
Compiling...
pathunix.c
pathunix.c(279) : fatal error C1083: Cannot open include file: 'windows.h':
No such file or directory
/* snip */
w32_getreg.c
w32_getreg.c(18) : fatal error C1083: Cannot open include file: 'windows.h':
No such file or directory
/* snip */
Generating Code...
Compiling...
sequence.c
order.c
Generating Code...
C:\Boost SVN\trunk\tools\jam\src>
[end of output]

The windows.h file exists in the C:\Program Files\Microsoft Platform SDK for
Windows Server 2003 R2\include directory. If I include window.h in source
code while using Visual Studio, it is found by the compiler.

What should I do so that windows.h can be found by build.bat?

-- 
Charles

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