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 Comments

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?

Sign in to comment.

Answers (0)

Products

Asked:

on 27 Mar 2014

Commented:

on 23 Jun 2020

Community Treasure Hunt

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

Start Hunting!