LNK2001 using memory allocation

2 views (last 30 days)
Tobias
Tobias on 23 Sep 2014
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?

Answers (0)

Categories

Find more on Simulink Coder in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!