Opened 17 years ago

Closed 15 years ago

#600 closed Bugs (fixed)

VC8 can't find windows.h even though environment is correct!

Reported by: bsdfan3 Owned by: Beman Dawes
Milestone: Boost 1.35.0 Component: filesystem
Version: None Severity: Showstopper
Keywords: Cc:

Description (last modified by Beman Dawes)

VC++ 2k5 Express, Platform SDK for Windows 2k3, "bjam
--without-python "-sTOOLS=vc-8_0" --prefix="C:\Program
Files\Boost\" install" used to install

exception.cpp compilation fails repeatedly due to an
inability to find windows.h

vsvars.bat is attached

Change History (4)

comment:1 by bsdfan3, 17 years ago

Logged In: YES 
user_id=604556

Turns out the problem in that case is #include "windows.h"
instead of #include <windows.h> . D'oh.  However, there are
spots that have the same problem (in various Boost::Threads
files) and use the latter #include syntax...I can't see why
the header isn't being found in the latter case.

P.S. compiling the patched exception.cpp causes VC8 to
reject one of its own headers (sal.h)...

comment:2 by nobody, 16 years ago

Logged In: NO 

I had to download PSDK separately and then modify the
vc-8_0-tools.jam file to tell cl.exe where to find these
files. E.g.

flags vc-8_0 C++FLAGS : /I\"C:\\Program Files\\Microsoft
Platform SDK\\Include\" ;


Arguably a small bug the jam file or at least the
documentation for the vc8 build.

comment:3 by Marshall Clow, 15 years ago

Owner: changed from beman_dawes to Beman Dawes
Severity: Showstopper
Status: assignednew

assigning to actual user "bemandawes" instead of unknown user "beman_dawes"

comment:4 by Beman Dawes, 15 years ago

Description: modified (diff)
Milestone: Boost 1.35.0
Resolution: Nonefixed
Status: newclosed

For 1.35.0, all the filesystem and system includes use <...>. I'll watch the tests to see if this causes any problems. On that basis, I'm marking this as fixed.

If it turns out there is a jam issue, I'll forward an error report to those folks.

Note: See TracTickets for help on using tickets.