Opened 12 years ago

Closed 10 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

Attachments (0)

Change History (4)

comment:1 Changed 12 years ago by bsdfan3

Logged In: YES 

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 Changed 11 years ago by nobody

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 Changed 10 years ago by Marshall Clow

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 Changed 10 years ago by Beman Dawes

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.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Beman Dawes.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.