the definitions of some functions, such as mxDestroyArray_proxy, mxGetPr_proxy, mxarray

In Linux System, I have some problem: test1.c:(.text+0x151): undefined reference to `mxCreateDoubleMatrix_730_proxy' test1.c:(.text+0x174): undefined reference to `mxCreateDoubleMatrix_730_proxy' test1.c:(.text+0x202): undefined reference to `mxGetPr_proxy' test1.c:(.text+0x25b): undefined reference to `mxGetPr_proxy' test1.c:(.text+0x2d9): undefined reference to `mlfSum_prod' test1.c:(.text+0x316): undefined reference to `mxDestroyArray_proxy' test1.c:(.text+0x325): undefined reference to `mxDestroyArray_proxy' test1.c:(.text+0x334): undefined reference to `mxDestroyArray_proxy' test1.c:(.text+0x343): undefined reference to `mxDestroyArray_proxy' test1.c:(.text+0x348): undefined reference to `libsum_prodTerminate' test1.c:(.text+0x34d): undefined reference to `mclTerminateApplication_proxy' /tmp/ccD4ZnAl.o: In function `display': test1.c:(.text+0x386): undefined reference to `mxGetPr_proxy' test1.c:(.text+0x394): undefined reference to `mxGetM_proxy' test1.c:(.text+0x3a2): undefined reference to `mxGetN_proxy' I want to know where is the definitions of those, such as mxarray, mxGetM_proxy, mxGetPr_proxy, mxGetN_proxy,and so on

답변 (2개)

How did you build this? Did you have this line at the very top of your code:
#include "mex.h"
Yao
Yao 2013년 4월 11일
yes, I have included this line:#include "mex.h". But, I still have the problem as same as I have discribed above.

카테고리

도움말 센터File Exchange에서 C Shared Library Integration에 대해 자세히 알아보기

태그

질문:

Yao
2013년 4월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by