468,553 Members | 1,436 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,553 developers. It's quick & easy.

INCLUDE environment variable not working

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
Nov 16 '05 #1
3 5532
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

"Strauss" <st*****@microsoft.com> wrote in message
news:%2***************@TK2MSFTNGP11.phx.gbl...
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

Nov 16 '05 #2

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

"Strauss" <st*****@microsoft.com> wrote in message
news:%2***************@TK2MSFTNGP11.phx.gbl...
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


Nov 16 '05 #3
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

"Strauss" <st*****@microsoft.com> wrote in message
news:O8**************@TK2MSFTNGP09.phx.gbl...

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

"Strauss" <st*****@microsoft.com> wrote in message
news:%2***************@TK2MSFTNGP11.phx.gbl...
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


Nov 16 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

11 posts views Thread by Yannick Turgeon | last post: by
6 posts views Thread by JStrummer | last post: by
28 posts views Thread by Christian | last post: by
11 posts views Thread by wenmang | last post: by
5 posts views Thread by ago | last post: by
9 posts views Thread by Michel Leunen | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.