MATLAB: Mexopt.sh not functional in R2016

gnucmexmexopt.sh

Hi,
I copied mexopt.sh onto my home folder on mac OS X running R2016 Matlab. I edited it to enable CXX flag 'xcrun /usr/local/bin/gcc-4.8'. However, none of the changes in mexopt.sh seems to affect mex operations. It always defaults to clang.
How should I enable compilation using gnuCC?
Thanks
gujax

Best Answer

Instead edit the xml files e.g., mex_C++_maci64.xml if using C++
Related Question