www.digitalmars.com         C & C++   DMDScript  

c++ - Environment Variables

reply "Jordon Hirshon" <j.hirshon worldnet.att.net> writes:
How can I see the  value of environment variables such as INCLUDE and LIB?

Thanks,
Jordon
Jun 16 2005
next sibling parent mx0 seznam.cz writes:
In article <d8rklp$1ts9$1 digitaldaemon.com>, Jordon Hirshon says...
How can I see the  value of environment variables such as INCLUDE and LIB?

Thanks,
Jordon
Inside the program or in the system? If you want to see these values in system, use echo %INCLUDE% from the command line (the easiest way, works AFAIK on Unix/Linux, in Windows however you have other options to view these values from control panel or in the registry, which you will especially need if you want to change environment variables, because changing them in command line box using SET command will not work for the entire system, but for that command line box only). Or you can call SET command without parameters, which displays all environment variables currently set with theire values. Form inside the program, you can retrieve environment variables using getenv(varname) function (stdlib.h).
Jun 16 2005
prev sibling next sibling parent "Matthew" <admin stlsoft.dot.dot.dot.dot.org> writes:
Use nvx from http://synesis.com.au/systools.html, as in:

    nvx include lib path

It splits them into constituent parts, and can display which bits 
don't exist with -x and -X flags.

There are also shortcuts for INCLUDE, LIB, CLASSPATH and PATH, so 
you can just type

    nvx -i -l -c -p


There
"Jordon Hirshon" <j.hirshon worldnet.att.net> wrote in message 
news:d8rklp$1ts9$1 digitaldaemon.com...
 How can I see the  value of environment variables such as INCLUDE 
 and LIB?

 Thanks,
 Jordon

 
Jun 16 2005
prev sibling parent "Walter" <newshound digitalmars.com> writes:
"Jordon Hirshon" <j.hirshon worldnet.att.net> wrote in message
news:d8rklp$1ts9$1 digitaldaemon.com...
 How can I see the  value of environment variables such as INCLUDE and LIB?
Type: set from the command prompt.
Jun 17 2005