Make error in simulink

1 visualizzazione (ultimi 30 giorni)
Infant Joe Charles
Infant Joe Charles il 14 Dic 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 Commento
Kaustubha Govind
Kaustubha Govind il 14 Dic 2011
Please paste the exact error message.

Accedi per commentare.

Risposta accettata

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

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Install Products in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by