C Implicit declaration differs from internal function declaration

懵懂的女人 提交于 2019-12-13 23:24:10

问题


I'm having some trouble with C standard functions. As an example, I'm getting that error in the memcpy function, even passing the right arguments to it. I've included a header as #include "header.h", and I've included , and so in the "header.h" file. (I'm also getting this error with strcpy, strtok, and some other standard functions, all respective headers included in "header.h")

Can anyone please help me with this? I'm running out of time to deploy this work... Thanks in advance


回答1:


It seems it was some trouble within eclipse. I right clicked one of those functions, selected Source->Add includes and it solved the problem (but didn't added any header). I hope this can be helpful for someone else




回答2:


Since you have not posted your code I assume that you have not included the following lines of code, at the top of your file:

#include <string.h>

In case your are using a C++ compiler (i.e. g++) then:

#include <cstring>


来源:https://stackoverflow.com/questions/11456338/c-implicit-declaration-differs-from-internal-function-declaration

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!