INCLUDE environment variable not working

  • Thread starter Thread starter Strauss
  • Start date Start date
S

Strauss

Hi:

I'm setting the INCLUDE environment variable, but VC is not searching
it for header files (I've checked it with filemon). I've tried with user
variable, machine variable, rebooted the machine, nothing makes it work.
Does INCLUDE variable until work? I'm using WinXP SP1 and VC 7.1.

Thanks,


Strauss
 
From the command line or from an IDE project? The IDE does not use the
environment it inherits to spawn build tools. It uses what you specify in
the directory options explicitly.

Ronald Laeremans
Visual C++ team
 
From the IDE. I was trying to make easy to configure a computer to
build our solutions, using environment variables. I can use the
$(VariableName) syntax, but I can't put more than one path in a variable
(I need to use multiple /I to set multiple paths, right?). Is there any
better way (without configuring every VC)?

Thanks in advance,


Strauss
 
Yes, you can use the /useenv swicth for devenv.exe. Look at the following
topic:
<msdn.microsoft.com/library/en-us/vsintro7/
html/vxgrfCommandLineSwitches.asp>

Ronald
 
Back
Top