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!