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

1 次查看(过去 30 天)
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