[英]Matlab R2011b mex file compilation error “Unrecognized switch: -argcheck”
當我嘗試在matlab r2011b上編譯mex文件時,出現以下錯誤。
我該如何解決?
我從http://www.timotheecour.com/software/ncut_multiscale/ncut_multiscale.html下載了代碼並進行了編譯
我的系統:核心i7-64位win7
You can change your home, image, and results directories if you want ; see startup/definePaths
*********************************
Error: compilation of \cimgnbmap_lower.cpp failed : Usage:
MEX [option1 ... optionN] sourcefile1 [... sourcefileN]
[objectfile1 ... objectfileN] [libraryfile1 ... libraryfileN]
Use the -help option for more information, or consult the MATLAB API Guide.
C:\PROGRA~1\MATLAB\R2011B\BIN\MEX.PL: Error: Unrecognized switch: -argcheck.
*********************************
....... (same error for other 11 files)
There were 0 files compiled
Error: There were 12 erroneous files during compilation
\cimgnbmap_lower.cpp
\mex_XindicatorTimesX.cpp
\mex_affinity_option.cpp
\mex_computeRowSum.cpp
\mex_constraint_classes.cpp
\mex_extractMaxima.cpp
\mex_istril.cpp
\mex_neighborW.cpp
\mex_normalizeColumns.cpp
\mex_projection_QR_symmetric.cpp
\mex_w_times_x_symmetric_tril.cpp
\spmtimesd.cpp
ans =
1x12 struct array with fields:
isErrorDuringCompilation
isCompilationFailed
message
compiledFilename
file
isError
mex的-argcheck選項已從MATLAB R2010b中刪除。 您正在使用哪個版本的MATLAB? 如果您認為自己的mex文件不希望對API函數進行無效調用,則可以安全地刪除此選項。 例如,使用NULL指針調用mxGetPr將崩潰。 “ -argcheck”將捕獲此錯誤並拋出錯誤。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.