Boost logo

Boost-Build :

From: Charles Brockman (cmbrockman_at_[hidden])
Date: 2008-02-05 19:39:38


Jurko wrote:
> OK, and what settings did it configure? Did you look into the
> %VS80COMNTOOLS%vsvars32.bat file it calls?

Now I see that I have _two_ vcvars32.bat files. %VS80COMNTOOLS% translates
to C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\.

> Either look into that file directly to see what variable it sets or
> save your environment settings ('set' command) before running the
> vcvarsall.bat/vsvars32.bat (they most likely forward to the same
> worker script) and after it and then compare them...

My %VS80COMNTOOLS%vsvars32.bat file (shown below) includes the line:
@SET FrameworkSDKDir=C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0
Maybe that should be:
@SET FrameworkSDKDir=C:\Program Files\Microsoft Platform SDK for Windows
Server 2003 R2

Examining the results of the 'set' command shows that the include directory
containing the windows.h file does not appear.

Here's the complete %VS80COMNTOOLS%vsvars32.bat:

@SET VSINSTALLDIR=C:\Program Files\Microsoft Visual Studio 8
@SET VCINSTALLDIR=C:\Program Files\Microsoft Visual Studio 8\VC
@SET FrameworkDir=C:\WINDOWS\Microsoft.NET\Framework
@SET FrameworkVersion=v2.0.50727
@SET FrameworkSDKDir=C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0
@if "%VSINSTALLDIR%"=="" goto error_no_VSINSTALLDIR
@if "%VCINSTALLDIR%"=="" goto error_no_VCINSTALLDIR

@echo Setting environment for using Microsoft Visual Studio 2005 x86 tools.

@rem
@rem Root of Visual Studio IDE installed files.
@rem
@set DevEnvDir=C:\Program Files\Microsoft Visual Studio 8\Common7\IDE

@set PATH=C:\Program Files\Microsoft Visual Studio 8\Common7\IDE;C:\Program
Files\Microsoft Visual Studio 8\VC\BIN;C:\Program Files\Microsoft Visual
Studio 8\Common7\Tools;C:\Program Files\Microsoft Visual Studio
8\SDK\v2.0\bin;C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;C:\Program
Files\Microsoft Visual Studio 8\VC\VCPackages;%PATH%
@set INCLUDE=C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE;%INCLUDE%
@set LIB=C:\Program Files\Microsoft Visual Studio 8\VC\LIB;C:\Program
Files\Microsoft Visual Studio 8\SDK\v2.0\lib;%LIB%
@set LIBPATH=C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727

@goto end

:error_no_VSINSTALLDIR
@echo ERROR: VSINSTALLDIR variable is not set.
@goto end

:error_no_VCINSTALLDIR
@echo ERROR: VCINSTALLDIR variable is not set.
@goto end

:end

-- 
Charles Brockman

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