LNK2001 using memory allocation

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?

回答(0 个)

类别

帮助中心File Exchange 中查找有关 Simulink Coder 的更多信息

提问:

2014-9-23

Community Treasure Hunt

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

Start Hunting!

Translated by