Code Generation - output file rtw_modelmap.h is missing

Hello,
I am using MATLAB R2018b to generate C++ auto-code from Simulink and using it from my coding environment Codeblocks 17.12.
The output file rtw_modelmap.h seems missing after auto-code generation and the C++ rise an error when it reads the line from MyModel.h file :
#include "rtw_modelmap.h"
That rise a fatal error "no file named rtw_modelmap.h found" and you can see that there is no file named like that in my *ert_rtw compilation file.
Did I done something wrong in auto-code generation settings please?
Thanks

 채택된 답변

NICOLAS BIERINX
NICOLAS BIERINX 2021년 1월 20일
The files rtw_modelmap.h and rtw_capi.h, located in matlabroot/rtw/c/src
You can type this in command window to find it :
cd(fullfile(matlabroot,'/rtw/c/src'))

댓글 수: 1

What are you supposed to do with the file to fix the error?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 MATLAB Coder에 대해 자세히 알아보기

태그

질문:

2021년 1월 16일

댓글:

2024년 3월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by