您的位置:首页 > 产品设计 > UI/UE

解决warning: incompatible implicit declaration of built-in function 'malloc'

2016-02-02 09:25 567 查看
因为代码中使用了malloc函数和字符串函数。编译时出现错误

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

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

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

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

解决的方法:

增加头文件就可以

#include<stdlib.h>

#include<string.h>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: