Closed eyildiz-ugoe closed 6 years ago
>> compile Building with 'g++'. Error using mex /home/username/workspace/seeing3Dchairs/code/features.cc: In function ‘mxArray* process(const mxArray*, const mxArray*)’: /home/username/workspace/seeing3Dchairs/code/features.cc:38:44: error: cannot convert ‘const size_t* {aka const long unsigned int*}’ to ‘const int*’ in initialization const int *dims = mxGetDimensions(mximage); ^ /home/username/workspace/seeing3Dchairs/code/features.cc:58:72: error: cannot convert ‘int*’ to ‘const size_t* {aka const long unsigned int*}’ for argument ‘2’ to ‘mxArray* mxCreateNumericArray(size_t, const size_t*, mxClassID, mxComplexity)’ mxArray *mxfeat = mxCreateNumericArray(3, out, mxDOUBLE_CLASS, mxREAL); ^ Error in compile (line 4) mex features.cc;
OS: Ubuntu 16.04 Matlab: 2017b g++: 4.9
OS: Ubuntu 16.04 Matlab: 2017b g++: 4.9