LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 10-19-2006, 10:34 PM   #1
isra
Member
 
Registered: Jan 2006
Location: Mexico, city
Distribution: DEBIAN, OpenSolaris
Posts: 32

Rep: Reputation: 15
Smile gcc and exit()


//what can i do if my gcc compiler reports me an error when compile a program with the exit function?
is there any other function to replace this one?
 
Old 10-20-2006, 10:42 AM   #2
Denes
Member
 
Registered: Mar 2004
Distribution: CentOS 4.3/4.5
Posts: 72

Rep: Reputation: 15
What is the error you are getting from the compiler?

exit is in stdlib.h did you include that (see man 3 exit)?

_exit is in unistd.h, you can use that if for some reason exit isn't found (see man 2 exit).
 
  


Reply



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
GCC isn't detecting exit() and itoa()! Kixdemp Programming 3 03-12-2006 09:34 PM
difference between exit 1 and exit kushalkoolwal Programming 6 10-20-2005 03:56 PM
gcc wont install, 'failed dependencies: glibc-devel is needed by gcc-3.3.3-41' TdlSnare SUSE / openSUSE 3 11-29-2004 02:13 PM
gcc exit status 1 Daddio Linux - Software 4 10-25-2003 05:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 08:31 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