嘿,试图在 MatLab 中编译一个 C 文件,但我遇到了这个错误,我正在尝试理解它。非常感谢任何和所有指导。
>> mex BDS_unpack_mex5.c
xcrun: error: SDK "macosx10.7" cannot be located
clang: warning: no such sysroot directory: '-mmacosx-version-min=10.7'
BDS_unpack_mex5.c:17:10: fatal error: 'math.h' file not found
#include <math.h>
^
1 error generated.
mex: compile of ' "BDS_unpack_mex5.c"' failed.
Error using mex (line 206)
Unable to complete successfully.