Boost logo

Boost-Build :

Subject: Re: [Boost-build] Build with VS8 and VS9
From: Nogradi, Chris (Chris.Nogradi_at_[hidden])
Date: 2014-02-04 09:43:47

On Sunday, February 02, 2014 11:59 PM, Vyacheslav Andrejev wrote:
> VP> I vaguely believe windows.h and friends are now part of Platform
> VP> SDK, but I don't remember how a compiler finds them, and which
> VP> version is used.
> Compiler finds them using environment variables. Boost build executes
> vcvars32.bat file that sets them. vcvars32.bat in turn looks up the
> registry at *\SOFTWARE\Microsoft\Microsoft
> SDKs\Windows\CurrentInstallFolder and sets SDK include dirs relative to
> it.
> If it fails, it sets SDK include dir to
> %VCINSTALLDIR%\PlatformSDK\Include.
> Therefore technically all versions of VS should use the same winnt.h and
> winioctl.h if the correspondent registry key exists and the user has
> sufficient rights to read it.
> I would recommend to go to a command line, start vcvars32.bat manually and
> check INCLUDE environment variable after that. Or start procmon and check
> where winnt.h and winioctl.h come from when compiling using VC8 and VC9.
> --

Thanks Volodya and Vyacheslav, I was able to build it fine on another machine using VS2008 so the original machine must be mis-configured.



CONFIDENTIALITY NOTICE: This email and any attachments are for the sole use of the intended recipient(s) and contain information that may be confidential and/or legally privileged. If you have received this email in error, please notify the sender by reply email and delete the message. Any disclosure, copying, distribution or use of this communication (including attachments) by someone other than the intended recipient is prohibited. Thank you.

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at