MEX compile error: unknown type name 'char16_t'

前端 未结 7 1306
南笙
南笙 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:18

    Include uchar.h before including mex.h...works fine. Also, the answer above (adding -std=c++11) only works for c++, not c.

    #include 
    #include "mex.h"
    

提交回复
热议问题