Make error in simulink

1 visualización (últimos 30 días)
Infant Joe Charles
Infant Joe Charles el 14 de Dic. de 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 comentario
Kaustubha Govind
Kaustubha Govind el 14 de Dic. de 2011
Please paste the exact error message.

Iniciar sesión para comentar.

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Install Products en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by