make
Building wrappers ...
Building with 'g++'.
Error using mex
/home/fupeng/workspace/libelas-master/matlab/elasMex.cpp: In function ‘void mexFunction(int, mxArray**, int, const mxArray**)’:
/home/fupeng/workspace/libelas-master/matlab/elasMex.cpp:90:50: error: cannot convert ‘const size_t* {aka const long unsigned
int*}’ to ‘const int32_t* {aka const int*}’ in initialization
const int32_t *I_dims = mxGetDimensions(prhs[0]);
^
/home/fupeng/workspace/libelas-master/matlab/elasMex.cpp:98:68: error: cannot convert ‘int32_t* {aka int*}’ to ‘const size_t*
{aka const long unsigned int*}’ for argument ‘2’ to ‘mxArray* mxCreateNumericArray(size_t, const size_t*, mxClassID,
mxComplexity)’
plhs[0] = mxCreateNumericArray(2,D_dims,mxSINGLE_CLASS,mxREAL);
^
/home
libelas: matlab wrapper 编译出问题
最新推荐文章于 2021-03-17 03:46:02 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)