Matlab coder: Multiple coder projects

2 次查看(过去 30 天)
Michael
Michael 2023-11-27
I have a Matlab function that was used to generate c++ code ten years ago, and this C++ code is included in an existing C++ project. I have a few new Matlab functions that I want to generate C++ code for and include into the same C++ project. I don't want to regenerate code for this old Matlab function, I don't want to touch it at all. But if I generate code for my newest functions and try to include those into the same project I get redefinition errors. Coder allows me to add a namespace for the function I am generating code for, but not for the utility function files like rtwtypes.h so no matter what I do I get redefinition errors for the coder generated types.
The older code was generated column major and the new stuff will be generated row major, and i just don't want to have to go into my C++ project and modify ten year old code. Is there a way to get this done without having to include all Matlab functions in a single Coder project??

回答(0 个)

类别

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

标签

产品


版本

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by