Make error in simulink

3 views (last 30 days)
Infant Joe Charles
Infant Joe Charles on 14 Dec 2011
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?
  1 Comment
Kaustubha Govind
Kaustubha Govind on 14 Dec 2011
Please paste the exact error message.

Sign in to comment.

Accepted Answer

Ken Atwell
Ken Atwell on 15 Dec 2011
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 Comments
Infant Joe Charles
Infant Joe Charles on 15 Dec 2011
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 on 17 Dec 2011
Yes, this version of MATLAB is looking for GCC 4.0, which is no longer included in Xcode, sorry.

Sign in to comment.

More Answers (0)

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!