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에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!