Matlab 垃圾邮件编译错误:未知参数:'-funsafe循环优化mmacosx版本最小值=10.7';

Matlab 垃圾邮件编译错误:未知参数:'-funsafe循环优化mmacosx版本最小值=10.7';,matlab,gcc,compilation,mex,Matlab,Gcc,Compilation,Mex,我想使用SPAMS包做一些稀疏编码项目。我在Mac上使用Matlab2013B。运行compile.m时,显示以下错误: compilation of: -I./linalg/ -I./decomp/ -I./prox/ -I./dictLearn/ dictLearn/mex/mexTrainDL.cpp clang: error: unknown argument: '-funsafe-loop-optimizations-mmacosx-version-min=10.7' [-Wunuse

我想使用SPAMS包做一些稀疏编码项目。我在Mac上使用Matlab2013B。运行
compile.m
时,显示以下错误:

compilation of: -I./linalg/ -I./decomp/ -I./prox/ -I./dictLearn/ dictLearn/mex/mexTrainDL.cpp
clang: error: unknown argument: '-funsafe-loop-optimizations-mmacosx-version-min=10.7' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
mex: compile of ' "dictLearn/mex/mexTrainDL.cpp"' failed.

有人能帮我吗?

这看起来像是两个有效的选项名
-funsafe循环优化
-mmacosx version min=10.7
。编辑
compile.m
并搜索这些字符串,然后在
-funsafe循环优化之后或
-mmacosx version min=10.7
之前添加空格