天天看點

解決方法:incompatible implicit declaration of built-in function ‘exit’ [enabled by default]

解決方法:incompatible implicit declaration of built-in function ‘exit’ [enabled by default]

在寫C的時候,想用exit()這個函數退出程序,編譯後出現這個警告,警告的意思是出現了不相容的聲明,我試了一下不影響程式的運作,但是最好把警告弄掉,加個頭檔案即可。

頭檔案:<stdlib.h>

繼續閱讀