LNK2001 using memory allocation
Afficher commentaires plus anciens
I'm trying to export code from a simulink model to c++ code with dynamic memory allocation. (enabled "generate reusable code")
I try to build the code in VS2010 but he throws me an error message, that VS has an unresolved external: error LNK2001: unresolved external symbol _RT_MEMORY_ALLOCATION_ERROR
If I generate the code with static memory everything works fine, but I need in this case the dynamic memory
I tried to compile on different machines (with matlab and without matlab), it gives the same error all the time. I can build the code with matlab without any error, only visual studio seems to have a problem.
Has anyone an idea what I need to change or a workaround?
Réponses (0)
Catégories
En savoir plus sur Simulink Coder dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!