Compilation error with non-inline S-Function,

Hi,
With regards to adding S-Function block in CPU, I tried to check the checkbox of non-inline
S-Function in configuration parameter window of CPU model.
S-Functions.jpg
But when compiling CPU got an error saying
Error: #5: cannot open source input file "tmwtypes.h".
So I tried to add the include path "..../MATLAB/R2018b/externinclude" in the makefile
and then got a new error saying "simstruc.h: No such file or directory "
but after adding the path of simstruc.h file, I am getting below error saying "Unrecognized use"
"simulink/include/simstruc_compcond.h", line 244: Error: #35: #error directive: Unrecognized use. #error Unrecognized use."
Please let me know what could be the necessary settings when using non-inline S-Function.
Thank you

回答(0 个)

类别

帮助中心File Exchange 中查找有关 Block and Blockset Authoring 的更多信息

提问:

2019-6-3

Community Treasure Hunt

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

Start Hunting!

Translated by