How to namespace the C++ code from simulink embedded coder
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Ian Colwell
le 21 Nov 2022
Commenté : Ian Colwell
le 12 Déc 2022
Hello There,
We have several simulink models that we export using embedded coder and compile together to create 1 app.
How do we get embedded coder to generate C++ code that is namespaced? It seems like matlab coder and even embedded coder for m files have this feature, but not embedded coder for simulink.
The issue is that the generated code will create globals like "rtConstP" that will conflict with each other once compiled together.
0 commentaires
Réponse acceptée
Mark McBroom
le 9 Déc 2022
https://www.mathworks.com/help/ecoder/ug/interactively-configure-cpp-interface.html
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Deployment, Integration, and Supported Hardware dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!