Make error

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

回答(1 个)

Fangjun Jiang
Fangjun Jiang 2011-10-22

0 个投票

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

类别

帮助中心File Exchange 中查找有关 MATLAB 的更多信息

标签

提问:

2011-10-22

Community Treasure Hunt

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

Start Hunting!

Translated by