MATLAB: Matlab 2014b mex switch C compiler from XCode Clang to GCC on Mac

gccmacmatlab 2014bMATLAB Compilermexmex compilerxcode

I typed
mex -setup C
in MATLAB 2014b and it shows
MEX configured to use 'Xcode with Clang' for C language compilation.
It doesn't give me any options to select. I am sure I have installed GCC on my Mac.
I want to unlink the Xcode and switch the compiler to GCC. Can somebody tell me how to do that?
thanks,

Best Answer

Sorry, MEX only supports Xcode/Clang on Mac. See http://www.mathworks.com/support/compilers/R2014b/index.html?sec=maci64
Related Question