问题遇到的现象和发生背景
问题相关代码,请勿粘贴截图
运行结果及报错内容
我的解答思路和尝试过的方法
我想要达到的结果
compile_windows
I am going to use the precompiled fortran file
If it doesnt work then use cygwin+g77 (or gfortran) to recompile rfsub.f
使用 'MinGW64 Compiler (C++)' 编译。
MEX 已成功完成。
使用 'MinGW64 Compiler (C++)' 编译。
错误使用 mex
G:\CSDN\Random-Forest-MATLAB-master\Random-Forest-MATLAB-master\RF_MexStandalone-v0.02\randomforest-matlab\RF_Class_C\src\mex_ClassificationRF_predict.cpp: In function
'void mexFunction(int, mxArray**, int, const mxArray**)':
G:\CSDN\Random-Forest-MATLAB-master\Random-Forest-MATLAB-master\RF_MexStandalone-v0.02\randomforest-matlab\RF_Class_C\src\mex_ClassificationRF_predict.cpp:114:75:
error: cannot convert 'int*' to 'const mwSize* {aka const long long unsigned int*}' for argument '2' to 'mxArray* mxCreateNumericArray_730(mwSize, const mwSize*,
mxClassID, mxComplexity)'
plhs[0] = mxCreateNumericArray(ndim, dims_ntest, mxINT32_CLASS, mxREAL);