编译错误、警告汇总(不断更新)

1、
test.c:15: warning: incompatible implicit declaration of built-in function ‘malloc’
test.c:26: warning: incompatible implicit declaration of built-in function ‘free’

解决方法:

加入头文件即可

#include<stdlib.h>

#include<string.h>

2、

unterminated #ifndef
少了#endif,增加#endif即可


猜你喜欢

转载自blog.csdn.net/qq_28388835/article/details/80341037