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 Commento

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.

Accedi per commentare.

Risposte (0)

Categorie

Richiesto:

il 28 Ago 2011

Community Treasure Hunt

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

Start Hunting!

Translated by