Find the answer to your Linux question:
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 ...
  1. #1
    Just 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

  2. #2
    Linux Enthusiast
    Join Date
    Aug 2006
    Posts
    631
    Can you post some snippets of your code?

    Regards

  3. #3
    Just Joined!
    Join Date
    May 2007
    Posts
    4
    Here you go:
    Code:
    			if( setenv ( name, val, T ) == -1 )
    			{
    			    perror ( "ERROR setting environment" );
    			    myexit( F );				
    			}

  4. #4
    Linux 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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...