Hi,
I am able to get environment variable using getenv function in gcc.But when tried to change the value using setenv function, its value is changed as seen after calling getenv function. when try to seen the value of environment variable in command terminal in ubuntu. it is not showing any change. Can any one tell me, how can i change environment variable in linux gcc.
----------------
Linux Learner
environment variable in linux gcc
-
- Posts: 282
- Joined: Wed 16 Dec 2009, 21:38
- Location: Earth
Re: environment variable in linux gcc
I presume You mean "C" , GCC is just a compiler.learner wrote:Hi,
Can any one tell me, how can i change environment variable in linux gcc.
Seems that problem happens because an environment variable set by some process is not visible by parent process.
It is not possible to export variable to the parent process.
SUUM CUIQUE.