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 个评论

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) 的更多信息

提问:

2011-8-28

Community Treasure Hunt

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

Start Hunting!

Translated by