I have a XCode 5.1.1 and Matlab 2012a installed.

Whenever I try to simulate a model cotaining an embedded Math function, I get the error, 'Making simulation target "kf_sfun", ...
/Applications/MATLAB_R2012a.app/bin/mex: line 305: gcc-4.2: command not found /Applications/MATLAB_R2012a.app/bin/mex: line 1326: gcc-4.2: command not found
mex: compile of ' "kf_sfun.c"' failed.
gmake: * [kf_sfun.o] Error 1 /Applications/MATLAB_R2012a.app/bin/mex -c -O -DMATLAB_MEX_FILE -I/Applications/MATLAB_R2012a.app/toolbox/stateflow/

1 Comment

Could you try running "mex -setup" and configure your MEX compiler.

Answers (0)

This question is closed.

Products

Tags

Asked:

on 26 Aug 2014

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!