matrix.h(277): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

Hi,
I am working in Visual Stdio 2010 environment and want to call matlab engine form it. My matlab version is 2013b.
I have got an error during compilation which is given below: matrix.h(277): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
when I check inside the matrix.h file, line 277 contains the below statement.
typedef CHAR16_T mxChar;
I would be very grateful, if someone enlighten me on this issue.

4 个评论

Are you able to build your application using the MEX command? Also, please try building the example file engwindemo.c to make sure you are using the correct steps.
Hi, I have a similar error when generating Code using embedded coder.
https://se.mathworks.com/matlabcentral/answers/375441-code-generation-errors-mex-compile-works-fine
Hi guys, I have the similar error when compiling the cpp s-function file.
Can you show the complete error message you are seeing? Along with the offending line?

请先登录,再进行评论。

回答(0 个)

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by