简体   繁体   English

墨西哥错误206 Matlab

[英]mex error 206 Matlab

The cpp code I received for a project isn't working so I want to compile and see if it compiles. 我为项目收到的cpp代码无法正常工作,因此我想进行编译并查看其是否可以编译。 It didn't compile, but I tried compiling another cpp file that I know works just to see what would happen. 它没有编译,但是我尝试编译另一个我知道可以工作的cpp文件,只是想知道会发生什么。 In both cases I get the following error: 在这两种情况下,我都会收到以下错误:

EDU>> mex max.cpp
xcodebuild: error: SDK "macosx10.7" cannot be located.
xcrun: error: unable to find utility "clang++", not a developer tool or in PATH

mex: compile of ' "max.cpp"' failed.

Any suggestions how I can either fix the cpp file or maybe I'm not running this correctly? 有什么建议可以修复cpp文件,或者可能运行不正确吗? Can't figure out where to go from here. 想不通从这里去哪里。

EDIT : I figured it out. 编辑 :我想通了。 My mexopts.sh file was pointing to an old version of mac so I had to manually edit that file and change 10.7 to 10.9. 我的mexopts.sh文件指向旧版本的mac,因此我不得不手动编辑该文件并将10.7更改为10.9。

I figured it out. 我想到了。 My mexopts.sh file was pointing to an old version of mac so I had to manually edit that file and change 10.7 to 10.9. 我的mexopts.sh文件指向旧版本的mac,因此我不得不手动编辑该文件并将10.7更改为10.9。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM