Make error in simulink

2 次查看(过去 30 天)
I am running Matlab 2009b in mac os x lion. I get a make error when i try to run a simulink model having a embedded matlab function in it. I have installed Xcode 4.2 (the latest) but i still get the error. can anyone help please?

采纳的回答

Ken Atwell
Ken Atwell 2011-12-15
I'd need to see the exact error message to be sure, but I'll hazard a guess:
You are using the latest Apple operating system and compiler with a (relatively speaking) older version of MATLAB. R2009b relies on GCC 4.0, which was included in similar-vintage versions of Xcode, but is no longer included in modern releases of Xcode. Here is what was supported at the time of 9b's release:
You'll probably have better luck with Xcode versions 3.1 or 3.2, if you can still find them and they are installable on Lion (on this I am unsure).
  2 个评论
Infant Joe Charles
Infant Joe Charles 2011-12-15
This is the error message
Making simulation target "finalver7_training_sfun", ...
/Applications/MATLAB_R2009b.app/bin/mex -c -O -DMATLAB_MEX_FILE -I/Applications/MATLAB_R2009b.app/toolbox/stateflow/stateflow/../../../simulink/include -I/Applications/MATLAB_R2009b.app/toolbox/stateflow/stateflow/../../../extern/include -I/Applications/MATLAB_R2009b.app/stateflow/c/mex/include -I/Applications/MATLAB_R2009b.app/stateflow/c/debugger/include finalver7_training_sfun.c
/Applications/MATLAB_R2009b.app/bin/mex: line 1107: gcc-4.0: command not found
/Applications/MATLAB_R2009b.app/bin/mex: line 997: gcc-4.0: command not found
mex: compile of ' "finalver7_training_sfun.c"' failed.
gmake: *** [finalver7_training_sfun.o] Error 1
Ken Atwell
Ken Atwell 2011-12-17
Yes, this version of MATLAB is looking for GCC 4.0, which is no longer included in Xcode, sorry.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Install Products 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by