mardi 3 mars 2015

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. It didn't compile, but I tried compiling another cpp file that I know works just to see what would happen. 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? 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.




Aucun commentaire:

Enregistrer un commentaire