fatal error: rtwtypes.h: No such file or directory #include "rtwtypes.h"

조회 수: 96 (최근 30일)
D D
D D 2023년 6월 29일
답변: Divyanshu 2024년 9월 4일
My model has some reference model in accelerator mode. When I update the model, I get the error
fatal error: rtwtypes.h: No such file or directory #include "rtwtypes.h"
But when I check this file is available n slprj\sim\_sharedutils folder.. But compiler does not identify it..
I am using 'MinGW64 Compiler (C)' for C language compilation.
Could some one please help me with this
  댓글 수: 2
Angelo Yeo
Angelo Yeo 2023년 7월 4일
이동: Angelo Yeo 2024년 8월 31일
Can you check if you included path for headers in the referenced model? You can refer to the official doc Include directories for further information.
蔡
2024년 8월 31일
이동: Angelo Yeo 2024년 8월 31일
I'm having this issue as well, and the file is already in my path

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

답변 (1개)

Divyanshu
Divyanshu 2024년 9월 4일
Hello @D D,
I faced a similar issue "fatal error: rtwtypes.h: No such file or directory". The reason was compiler not recognizing the path correctly.
I retried the workflow from a different folder which does not contain any non-ascii character, such as directly from C drive.
Working from C drive resolved the issue for me.
Hope it helps!

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by