c++ - CHAR16_T type definition in matrix.h. Trying to read Mat-Files -
i trying read mat-files in c++ in qt project. @ morning had next problem: read mat files in c++ in qt project, , solved already. having problems next issue:
matrix.h:267: error: c2146: syntasis error :';'is missing before 'mxchar' c4430 missing type specifier - int assumed. note c++ not support default-int in project.pro telling it:
qmake_cxxflags += -ehsc -std=c++11 -zc:wchar_t qmake_lflags += -std=c++11 in tmwtypes.h types defined:
/** utf-16 character type */ #if (defined(__cplusplus) && (__cplusplus >= 201103l)) || (defined(_has_char16_t_language_support) && _has_char16_t_language_support) typedef uint16_t char16_t; #define u16_string_literal_prefix u #elif defined(_msc_ver) typedef wchar_t char16_t; #define u16_string_literal_prefix l #else typedef uint16_t char16_t; #endif #endif /* __tmwtypes__ */ #endif /* tmwtypes_h */ in matrix.h:
/* * logical type */ typedef bool mxlogical; /* * typedef required unicode support in matlab */ typedef char16_t mxchar; thanks in advance,and sorry if amateur question.
Comments
Post a Comment