码迷,mamicode.com
首页 > 编程语言 > 详细

C语言编译出现 incompatible implicit declaration of built-in function ‘strlen’等

时间:2017-04-01 23:03:35      阅读:892      评论:0      收藏:0      [点我收藏+]

标签:cti   string   malloc   错误   warning   ati   function   c语言   nbsp   

C语言 编译时出现错误

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’

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

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

解决办法:

        加入头文件即可

#include<stdlib.h>

#include<string.h>

C语言编译出现 incompatible implicit declaration of built-in function ‘strlen’等

标签:cti   string   malloc   错误   warning   ati   function   c语言   nbsp   

原文地址:http://www.cnblogs.com/yangxuming/p/6657660.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!