473,749 Members | 2,513 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 5685
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*****@micros oft.com> wrote in message
news:%2******** *******@TK2MSFT NGP11.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*****@micros oft.com> wrote in message
news:%2******** *******@TK2MSFT NGP11.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/vxgrfCommandLin eSwitches.asp>

Ronald

"Strauss" <st*****@micros oft.com> wrote in message
news:O8******** ******@TK2MSFTN GP09.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*****@micros oft.com> wrote in message
news:%2******** *******@TK2MSFT NGP11.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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
2996
by: Yannick Turgeon | last post by:
Oups! I did a typing error in my last post. Fixed. ----------- Hello all, We are currently changing our web server and, in the process, updating PHP version from 4.3.0 to 4.3.5. The problem we've got is that our way to include some files in other ones is no more working properly. The message we are getting looks like: "PHP Warning: main(..\db.inc.php): failed to open stream: No such file or directory in ..."
6
4667
by: JStrummer | last post by:
I have a question regarding paths and the include() statement in PHP. I develop in a Windows environment and will be publishing to a Linux server. I would like to do the following: 1. Setup my include references in such a way that I don't have to change them all every time I have to publish to the production server 2. Setup above in such a way that won't involve php.ini (& LInux equivalent), as I have access to edit this file...
4
2881
by: michaaal | last post by:
I have two folders in my website... Folder1 (this is where my #include file is, this is where the style.css is) --Folder2 (Folder2 is inside of Folder1) Folder2 contains a file that has this #include statement... <!--#include file="../include.inc"-->
28
20989
by: Christian | last post by:
Another question from a not even newbie: In Unix you can set an environment variable with the command export PYTHONPATH but I would like to set the variable from at .py script. So my question is: How do I export an environment variable in a .py script?
11
4018
by: wenmang | last post by:
Hi, all: What will happen if header files with the exact same names but with different contents and declared/defined without include guard reside in the include path for the compiler? Are these header files are included more than once? If so, is it the lastest included file always overwrite the previous one? Is this behavior predictable? thanks.
3
1744
by: Rahul S. | last post by:
Hey all: I need urgent information how to set the environment in Visual.NET wiritng in C. I am working with a licensed version of the Analyze 6.0 software from mayo clinic. I need to write code in C using AVW functions that are licensed by Mayo clinic. In order to access the AVW library of functions, I need to set the
6
2786
by: +86 | last post by:
i encountered this problem: "include('inc.php')" will work problely but "include('./inc.php') doesn't work .. both file_exists('inc.php') or file_exists('./inc.php') didn't return the right value.this always show "file doesn't exists' my environment is win2003+iis+php5 how to fix it ?
5
1903
by: ago | last post by:
Dear all, These days I often find myself using working-env.py, virtual-python.py & co. The main reason in most cases is to insulate my working environment so that I can use custom site-package libs together with the default stdlib. PYTHONHOME and/or PYTHONPATH (particularly with python -S) get close, but not quite there, and the above scripts seem a bit over the top. Wouldn't it be possible to support a PYTHONSITEDIR environment
9
6423
by: Michel Leunen | last post by:
Hi, Could someone explain me what I'm doing wrong here? I'm trying to retrieve the value of an environment variable in Ubuntu 8.04 like this: 'michel' This works but this doesn't: Traceback (most recent call last):
0
8997
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9568
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9335
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9256
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8257
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6801
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4709
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3320
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2218
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.