Set up project properties environment variable
I am new to microsoft windows visual studio 2008 IDE , Was looking for How to set environment variables when debugging in Visual Studio?
My project is in c/c++ windows console application.
Set Environment Variables in VS2008
Here are few simple steps to add environment variable.
- Open your project.
- Go to Project>Properties or pres Alt+F7
- Under Configuration Properties>Debugging, edit the ‘Environment’ value to set environment variables.
I wanted to set and add the directory “C:\Program Files\Hummingbird\Connectivity\13.00\Exceed” to the path when debugging app X applications, set the ‘Environment’ value to
PATH=%PATH%;C:\Program Files\Hummingbird\Connectivity\13.00\Exceed;C:\Program Files\Intel\Compiler\Fortran\10.1.021\IA32\Bin
And done.
Set System Wide Environment Variables in Windows PC
Other way to set up this is using system wide environment variable.
- Right click “My Computer”, Select properties
- Select the “advanced” tab
- Click the “environment variables” button
- In the “System variables” section, add the new environment variable that you desire
- “Ok” all the way out to accept your changes
Note : Visual Studio 2003 doesn’t allow you to set environment variables for debugging. In this case one can use _putenv function.
source – Windows Sysinternals: Documentation, downloads and additional resources
Related posts:
- Debugging Fortran Programs Using IDB How To Debug Fortran Code Ifort Commands
- Unresolved External Symbol _getenv_ USE IFPORT Link Error For Application Porting From UNIX To Win32
- How To Debug Err This Application Has Failed To Start Because MSVCR90.dll Was Not Found
- Ifort -extend-source Option Errors & Fortran Fixed Formatting Use nofree
- How To _access Function For Long File Names As Path In Winddows Programming Use UNC
Tags: tips, win32, Windows XP
This entry was posted on Monday, October 18th, 2010 at 5:12 am and is filed under Unix2Win32_Porting. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.