Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我得到这个错误。
error: warning: incompatible implicit declaration of built-in function ‘memcpy’ [enabled by default]
这是代码:
int arr[ 12] = {1,0,0,0,0,0,0,0,0,0,9370, 0}; void *a = &arr; memcpy(machine->mem, a,12*4);
我做错了什么?
您可能忘记包含<string.h>.
<string.h>
添加#include <string.h>到文件的顶部。
#include <string.h>