how to fix this bug

how to fix this bug
"rtwtypes.h", line 16: fatal error: could not open source file "simstruc_types.h" 1 fatal error detected in the compilation of "otro.c". Compilation terminated.
>> Compilation failure gmake: * [otro.obj] Error 1 >>

Answers (1)

Kaustubha Govind
Kaustubha Govind on 14 Dec 2011

0 votes

Check if you see simstruc_types.h under $matlabroot/simulink/include/simstruc_types.h on your computer, where $matlabroot is the MATLAB installation file. Also, turn on "Verbose build" from the Code Generation pane of the Configuration Parameters window to see the exact compiler command that is being used. Is the above folder included in the -I option?

1 Comment

cxm c
cxm c on 1 Jun 2021
How to add the path of simstruc_types.h?

Sign in to comment.

Tags

Asked:

on 14 Dec 2011

Commented:

on 1 Jun 2021

Community Treasure Hunt

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

Start Hunting!