error LNK2019: unresolved external symbol emlrtReturnArrays
조회 수: 2 (최근 30일)
이전 댓글 표시
Hello,
I'm generating C code from Matlab function.
I would like to test generated C code in Matlab, using a C mex function. I've seen that while generating code, an "interface" folder is also generated inside the "codegen" folder, so I tried to compile the mex function inside "codegen/interface/_coder_MyFunctionName_mex.c" file.
But I'm getting the "unresolved external symbol" error for allmost all the "emlrtXXX" functions.
Am I doing something wrong?
Regards,
Ion
댓글 수: 0
답변 (1개)
Michelle Wu
2017년 2월 17일
The MATLAB Answers post attached below looks relevant to the error you saw:
The error looks like a linker related issue. You probably need to include all the necessary source files to the MEX command and compile them together.
참고 항목
카테고리
Help Center 및 File Exchange에서 MATLAB Code Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!