下载了一个linux环境下的开源工具,结果在mac的gcc环境中编译的时候,报错 error: malloc.h: No such file or directory
解决方法:将报错文件中
#include <malloc.h>
修改为
#include <sys/malloc.h>
在使用Linux环境下载的开源工具于Mac的gcc环境中编译时遇到'error:malloc.h:No such file or directory'的问题。通过修改#include <malloc.h>为#include <sys/malloc.h>,成功解决了该错误。
下载了一个linux环境下的开源工具,结果在mac的gcc环境中编译的时候,报错 error: malloc.h: No such file or directory
解决方法:将报错文件中
#include <malloc.h>
修改为
#include <sys/malloc.h>
3618
521
410
6579

被折叠的 条评论
为什么被折叠?