Warning: implicit declaration of built-in function 'exit' is not compatible solutions

  1. #include <stdio.h>  
  2.   
  3. int main ()  
  4. {  
  5.     printf("hello world!/n");  
  6.     exit(0);  
  7. }  

 

 

       The reason is simple, and did not include it stdlib.h, with no problem. Later, when the google search found online a lot of people have this problem, to write down the solution to this problem today.

So, the compiler warning: implicit declaration of built-in functions 'XXX' is not compatible with the problem because they did not include the appropriate header files, plus it is OK!

Guess you like

Origin www.cnblogs.com/kyrie211/p/11070408.html