C code won't compile for C caller but will run in other blocks

1 回表示 (過去 30 日間)
Matthew Gingerich
Matthew Gingerich 2019 年 5 月 10 日
回答済み: Venkatesh Chilapur 2019 年 5 月 13 日
I have some custom C code that gets added to a Simulink program and then programmed into a TI C2000 processor using Embedded Coder. Last week I created a C caller block that calls my C function and it worked fine. This week when I try to run the program with the C caller I get the error "No such file or directory" for many important header files. Adding the directories of these header files to the include paths just produced more errors. However, I can still run my C function by calling it from the Startup Initialization block. This indicates that the C code is fine, and the headers are fine-- It's only the C function caller that doesn't understand my code. I didn't change any settings since I had the C function caller working last week so I don't understand why it would stop working. Can anyone help me figure this out?

回答 (1 件)

Venkatesh Chilapur
Venkatesh Chilapur 2019 年 5 月 13 日
Hi Matthew,
Please try contacting MathWorks support at:
Regards,
Venkatesh C

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by