Show older comments
Hi all, I'm french so excuse me if I make some errors.
I use a MatLab model of VSC on a Windows computer and it works very well. But when I want to run it on my MAC, there is this message and I don't know what to do... Anyone knows what is the problem?
The electrical initial states of your model are forced to steady state by the powergui block.
Making simulation target "HV_2L_v1_sfun", ...
/Applications/MATLAB_R2010b.app/bin/mex -c -O -DMATLAB_MEX_FILE -I/Applications/MATLAB_R2010b.app/toolbox/stateflow/stateflow/../../../simulink/include -I/Applications/MATLAB_R2010b.app/toolbox/stateflow/stateflow/../../../extern/include -I/Applications/MATLAB_R2010b.app/stateflow/c/mex/include -I/Applications/MATLAB_R2010b.app/stateflow/c/debugger/include HV_2L_v1_sfun.c
/Applications/MATLAB_R2010b.app/bin/mex: line 305: gcc-4.0: command not found /Applications/MATLAB_R2010b.app/bin/mex: line 1041: gcc-4.0: command not found
mex: compile of ' "HV_2L_v1_sfun.c"' failed.
gmake: * [HV_2L_v1_sfun.o] Error 1
Answers (1)
Fangjun Jiang
on 22 Oct 2011
0 votes
Do you have a C compiler installed on your MAC computer? Also, maybe on the MATLAB in your MAC computer, you have not run the mex setup yet. Try to run:
mex -setup
Categories
Find more on MATLAB 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!