MATLAB Answers

0

cannot open source file "mex.h"

Asked by Nikhilesh Karanam on 25 Mar 2019
Latest activity Answered by Jan
on 25 Mar 2019
Hello,
Why there is mex.h file missing from my generated C code? where do I find it and how can I avoid the error. I am using IAR embedded workbench to build and compile the code just in order to check if the C code does the intended job. Please shed some light. Thanks.
Regards,
Nikhilesh

  0 Comments

Sign in to comment.

1 Answer

Answer by Jan
on 25 Mar 2019

fullfile(matlabroot,'extern', 'include', 'mex.h')
mex.h belongs to Matlab's toolbox files.
"I am using IAR embedded workbench to build and compile the code" - this does not explain uniquely, what you are exactly doing. It seem like you forgot to include the required path.

  0 Comments

Sign in to comment.