Results 1 to 4 of 4
When compile using a makefile i'm getting this error:
implicit declaration of function 'setenv'
eventhough i've included <stdlib.h>.
Can i know why i'm getting that error and how to solve ...
- 05-28-2007 #1Just Joined!
- Join Date
- May 2007
- Posts
- 4
implicit declaration error.
When compile using a makefile i'm getting this error:
implicit declaration of function 'setenv'
eventhough i've included <stdlib.h>.
Can i know why i'm getting that error and how to solve it.
Thanks
- 05-28-2007 #2Linux Enthusiast
- Join Date
- Aug 2006
- Posts
- 631
Can you post some snippets of your code?
Regards
- 05-28-2007 #3Just Joined!
- Join Date
- May 2007
- Posts
- 4
Here you go:
Code:if( setenv ( name, val, T ) == -1 ) { perror ( "ERROR setting environment" ); myexit( F ); }
- 05-28-2007 #4Linux Enthusiast
- Join Date
- Aug 2006
- Posts
- 631
And what are the types and values of the arguments?
The snippet you give is too less to say something about the error.
Please give more information.
Regards


Reply With Quote