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

有包含头文件,gcc下没包含头文件会给warning

加入头文件#include<stdlib.h>

你可能感兴趣的:(warning: incompatible implicit declaration of built-in function ‘exit’)