MEX compile error: unknown type name 'char16_t'

前端 未结 7 1310
南笙
南笙 2020-12-04 22:26

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         


        
7条回答
  •  暖寄归人
    2020-12-04 23:10

    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.

    It worked on OS X 10.9 Mavericks with Xcode 6 installed.

提交回复
热议问题