LNK2001 using memory allocation
Mostrar comentarios más antiguos
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?
Respuestas (0)
Categorías
Más información sobre Simulink Coder en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!