大宇私人领地伊甸园丨宁愿做了后悔,也不要错过后悔[www.mrdayu.com]
注册

24小时联系邮箱:[email protected]

所有文章
大宇私人伊甸园: 首页 > 所有文章 > 编程人生 > C/C++语言 > incompatible implicit declaration of built-in function ‘memcpy’ [enabled by default]


友情链接:


incompatible implicit declaration of built-in function ‘memcpy’ [enabled by default]

发布时间:2018/11/22 C/C++语言 阅读:36

编译时遇到报错:Warring

[[email protected] STDC]$ gcc stdc_realloc.c 
stdc_realloc.c: In function ‘main’:
stdc_realloc.c:7:3: warning: incompatible implicit declaration of built-in function ‘memcpy’ [enabled by default]
   memcpy(p,"helloword",sizeof("helloword"));

解决方法:

添加头文件:

#include <string.h>
The bottom line, for me, is simple.

Let’s hope it doesn’t take 500 years for a discipline of testing to becomes the standard for software developers.

From:dayu

您好!请登录

合作网站快捷登录:
点击取消回复

已有0评论

    大宇博客

    点击这里给我发消息 点击这里给我发消息 点击这里给我发消息 点击这里给我发消息