Hi:

When building boost with msvc 2010, I get a c1083 unable to open file with windows.h.

My command line is:

Bjam –toolset=msvc –stage –build-type=complete

Even though as the output asks I have called vcvarsall.bat.

A portion of the log follows:

compile-c-c++ bin.v2\libs\test\build\msvc-10.0\debug\asynch-exceptions-on\link-static\runtime-link-static\debug.obj

debug.cpp

C:\Program Files\boost\boost/test/impl/debug.ipp(32) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory

 

    call "C:\Program Files\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86 >nul

cl /Zm800 -nologo @"bin.v2\libs\test\build\msvc-10.0\debug\asynch-exceptions-on\link-static\runtime-link-static\debug.obj.rsp"

 

...failed compile-c-c++ bin.v2\libs\test\build\msvc-10.0\debug\asynch-exceptions-on\link-static\runtime-link-static\debug.obj...

Anyone got any ideas, do I need to set up some environment variables?

Vs2008 builds fine with the latest windows sdk, the latest windows sdk configuration tool doesn’t allow integration with vc2010.

Help appreciated as always.

Regards

Sean.

Regards