报错 error: malloc.h: No such file or directory
解决方法:将报错文件中
#include <malloc.h>
修改为
#include <sys/malloc.h>
又报错 ‘malloc.h’ file not found use of undeclared identifier ‘malloc’
应该修改为
#include <mm_malloc.h>
报错 error: malloc.h: No such file or directory
解决方法:将报错文件中
#include <malloc.h>
修改为
#include <sys/malloc.h>
又报错 ‘malloc.h’ file not found use of undeclared identifier ‘malloc’
应该修改为
#include <mm_malloc.h>