While building generated C code, it is showing error due to simstruc_types.h and tmwtypes.h are missing

4 次查看(过去 30 天)
function y = BlinkLed(x)
%#codegen
x=uint8(x);
if x==uint8(1)
y=uint8(1);
else
y=uint8(0);
end
end
I created a matlab function block in simulink and generated C code through code generation. While building the generated C code in visual Studio Code, I faced the error "rtwtypes.h:20:28: fatal error: simstruc_types.h: No such file or directory", "rtwtypes.h:20:28: fatal error: tmwtypes.h: No such file or directory". Please help me building this code.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Simulink Coder 的更多信息

产品


版本

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by