MEX compile error: unknown type name 'char16_t'

前端 未结 7 1302
南笙
南笙 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:22

    As part of XCode 5.1.1 char16_t is defined in __config, which is called from typeinfo.

    You can add

    #include  
    

    before

    #include "mex.h"
    

    to have char16_t defined.

提交回复
热议问题