mac上:
解决方法:将报错文件中的
#include <malloc.h>
修改为
#include <stdio.h>
#ifdef __APPLE__
// macOS 系统
#include <stdlib.h>
#else
// 其他平台 (Windows)
#include <malloc.h>
#endif
如果只在MacOS系统上运行,可以将
#include <malloc.h>
替换为
#include <stdlib.h>
mac上:
解决方法:将报错文件中的
#include <malloc.h>
修改为
#include <stdio.h>
#ifdef __APPLE__
// macOS 系统
#include <stdlib.h>
#else
// 其他平台 (Windows)
#include <malloc.h>
#endif
如果只在MacOS系统上运行,可以将
#include <malloc.h>
替换为
#include <stdlib.h>