Linker error with mxCreateNumericalMatrix
Mostra commenti meno recenti
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
Kaustubha Govind
il 29 Ago 2011
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.
Risposte (0)
Categorie
Scopri di più su Write C Functions Callable from MATLAB (MEX Files) in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!