Make error in simulink

조회 수: 1 (최근 30일)
Infant Joe Charles
Infant Joe Charles 2011년 12월 14일
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
Kaustubha Govind
Kaustubha Govind 2011년 12월 14일
Please paste the exact error message.

댓글을 달려면 로그인하십시오.

채택된 답변

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