Linker error with mxCreateNumericalMatrix
이전 댓글 표시
I am getting a linker error with VC++2008
unresolved external symbol _mxCreateNumericMatrix_730
Which I take to mean that the definition in "matrix.h" is giving me the unresolved reference. Perhaps it should be something other than 730? I am wondering if someone could give me a clue?
Code;
mxArray *mexarray =mxCreateNumericMatrix(m, n,mxSINGLE_CLASS, mxREAL);
I'm currently using MATLAB 7.10.0(R2010a) Thanks!
--hsm
댓글 수: 1
Kaustubha Govind
2011년 8월 29일
Are you compiling using the MEX command, or directly in VC++? If directly in Visual Studio, are you linking against $matlabroot\extern\lib\$arch\microsoft\libmx.lib ($matlabroot=MATLAB installation directory, $arch is win32 or win64 depending on your system)? Also, make sure that if you have a 64-bit installation of MATLAB, your Visual Studio project is configured for an x64 target.
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Write C Functions Callable from MATLAB (MEX Files)에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!