![]() |
| | #1 |
| subminimalist Join Date: Jul 2008 Location: NYC
Posts: 3,946
| gcc 4.1.2 warning: incompatible implicit declaration of built-in function ‘exit’ |
| MK27 is offline | |
| | #2 |
| and the hat of vanishing Join Date: Aug 2001 Location: The edge of the known universe
Posts: 21,214
| Maybe post some relevant code?
__________________ If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut. Up to 8Mb PlusNet broadband from only £5.99 a month! |
| Salem is offline | |
| | #3 |
| subminimalist Join Date: Jul 2008 Location: NYC
Posts: 3,946
| Code: int main () {
exit(0);
}
test.c: In function ‘main’: test.c:2: warning: incompatible implicit declaration of built-in function ‘exit’ No more, no less... |
| MK27 is offline | |
| | #4 |
| and the Hat of Ass Join Date: Dec 2007
Posts: 731
| exit() requires <stdlib.h> doesn't it? That's what "man 3 exit" says. |
| rags_to_riches is offline | |
| | #5 |
| subminimalist Join Date: Jul 2008 Location: NYC
Posts: 3,946
| exit() requires <stdlib.h> doesn't it? That's what "man 3 exit" says. Correct you are...I guess the fact that "exit()" still works without stdlib.h had me confused. Thanks!
__________________ Accuracy and integrity mean nothing if you don't make it past the censors...PYTHAGORAS |
| MK27 is offline | |
| | #6 | |
| Kernel hacker Join Date: Jul 2007 Location: Farncombe, Surrey, England
Posts: 15,686
| Quote:
-- Mats
__________________ Compilers can produce warnings - make the compiler programmers happy: Use them! Please don't PM me for help - and no, I don't do help over instant messengers. | |
| matsp is offline | |
![]() |
| Tags |
| compiler |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Profiler Valgrind | afflictedd2 | C++ Programming | 4 | 07-18-2008 09:38 AM |
| Run time differences in Linux gcc versions | circuitbreaker | C++ Programming | 7 | 02-14-2008 11:09 PM |
| How does compiler/linker such as GCC decide to start locating the appropriate library | shong9 | C Programming | 4 | 09-02-2007 08:47 PM |
| Compiles on gcc 3.3 but not on gcc 4.0.3 | cunnus88 | C++ Programming | 5 | 03-29-2007 12:24 PM |
| gcc | DavidP | A Brief History of Cprogramming.com | 21 | 10-22-2003 03:46 PM |