MATLAB: Are Sun Studio 10 and 11 compilers supported for compiling MATLAB MEX-files

ccompilerMATLABr12r13r14r2006solaris

I would like to use Sun Studio 10 or 11 to compile MATLAB MEX-files. I would like to know which version of MATLAB supports this setup.

Best Answer

This enhancement has been incorporated in Release 2007b (R2007b). For previous product releases, read below for any possible workarounds:
MathWorks does not support using Sun Studio 10 (cc compiler version 5.7) and Sun Studio 11 (cc compiler version 5.8) to create MEX-files.
To work around this issue, you may be able to modify your mexopts.sh file located in your preferences directory to match the appropriate settings for either of these compilers. You can verify the location of this directory by typing
prefdir
at the MATLAB command prompt.
MathWorks does not support this workaround.