I cannot compile any MATLAB MEX code due to the following error:
In file included from /Applications/MATLAB_R2013a.app/extern/include/mex.h:58: In file inclu
This post might help: http://www.seaandsailor.com/matlab-xcode6.html
It was easier than I thought. Just replace all 10.x with your OS X version and add -Dchar16_t=UINT16_T to CLIBS in mexopts.sh file.
-Dchar16_t=UINT16_T
CLIBS
mexopts.sh
It worked on OS X 10.9 Mavericks with Xcode 6 installed.