cannot open source file "mex.h"

4 ビュー (過去 30 日間)
Nikhilesh Karanam
Nikhilesh Karanam 2019 年 3 月 25 日
回答済み: Jan 2019 年 3 月 25 日
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

回答 (1 件)

Jan
Jan 2019 年 3 月 25 日
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.

Community Treasure Hunt

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

Start Hunting!

Translated by