How can I integrate custom C/C++ code library into Simulink when it contains unsupported constructs?
Show older comments
I have a custom C/C++ library which I want to include into my Simulink model through the Simulation Target Configuration Parameters. I want to call functions from this library using Stateflow or C Caller blocks.
However, my code contains constructs that are not directly supported in Simulink, such as C++ classes, conflicting data type names between my code and Simulink, C++14 and later constructs, etc. This results in multiple errors thrown by parser during model compilation.
How can I setup my code to avoid these errors but still have the full functionality of my custom library?
Accepted Answer
More Answers (0)
Categories
Find more on Integrate C/C++ Code Using C Function Blocks in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!