By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,708 Members | 1,553 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,708 IT Pros & Developers. It's quick & easy.

INCLUDE environment variable not working

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a

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

P: n/a
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.