LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-14-2005, 03:13 AM   #1
xzotech
LQ Newbie
 
Registered: Aug 2005
Posts: 1

Rep: Reputation: 0
warning: incompatible implicit declaration of built-in function ‘exit’


Hi!
Juz got on board!
am trying to compile a program
and i got the following message...
can somebody explain what this following line means?

warning: incompatible implicit declaration of built-in function ‘exit’

i got 4 lines of the same warnings that indicates 4 lines of code
that has that problem...

i tried peeking at the first problematic line of code and its something
about:

exit(-1)

xzo
 
Old 08-14-2005, 05:43 AM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,541

Rep: Reputation: 866Reputation: 866Reputation: 866Reputation: 866Reputation: 866Reputation: 866Reputation: 866
Try add #include <stdlib.h> in the source code file that generates this error

or change exit(-1) to exit(EXIT_FAILURE)

Last edited by keefaz; 08-14-2005 at 05:45 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
warning: implicit declaration of function liguorir Linux - Software 5 10-22-2012 03:20 PM
Implicit declaration means alaios Programming 7 03-09-2009 06:20 AM
implicit declaration of function 'getdelim' MicahCarrick Programming 2 05-02-2005 11:03 AM
gcc 3.4.1 and c implicit declaration foo_bar_foo Programming 1 01-27-2005 04:49 PM
Implicit typename warning (gcc 3.3.4) ta0kira Programming 1 10-12-2004 03:45 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration