Friday, January 25, 2013

how i solved the problem of matlab char16_t redefinition

it was super easy.

open the file c:\program files\matlab\r2010a\extern\include\matrix.h

and comment out "typedef CHAR16_T char16_t


#ifndef __STDC_UTF_16__
#    ifndef CHAR16_T
#        if defined(_WIN32) && defined(_MSC_VER)
#            define CHAR16_T wchar_t
#        else
#            define CHAR16_T UINT16_T
#        endif
 //        typedef CHAR16_T char16_t;    //brutal force. but works fine for me
#    endif
#endif

No comments:

Post a Comment