Posted: Yesterday, at 06:14 Post subject:
environment variable in linux gcc
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.
PANZERKOPF
Joined: 16 Dec 2009 Posts: 250 Location: Earth
Posted: Yesterday, at 07:01 Post subject:
Re: environment variable in linux gcc
learner wrote:
Hi,
Can any one tell me, how can i change environment variable in linux gcc.
I presume You mean "C" , GCC is just a compiler.
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.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum