Skip to content

there some problems when compile edgesDetectMex.cpp #23

@youmi-zym

Description

@youmi-zym

Hi, I have a trouble when I compile the edgesDetectMex.cpp within Matlab.
There are some errors about the type of variable pointers.
Just as below:

mex private/edgesDetectMex.cpp -outdir private
Building with 'MinGW64 Compiler (C++)'.
Error using mex
E:\Users\User\Documents\Projects\edge\edges-master\private\edgesDetectMex.cpp: In function 'void
mexFunction(int, mxArray**, int, const mxArray**)':
E:\Users\User\Documents\Projects\edge\edges-master\private\edgesDetectMex.cpp:99:63: error: cannot convert
'const int*' to 'const size_t* {aka const long long unsigned int*}' for argument '2' to 'mxArray*
mxCreateNumericArray_730(size_t, const size_t*, mxClassID, mxComplexity)'
pl[0] = mxCreateNumericArray(3,outDims,mxSINGLE_CLASS,mxREAL);
^
E:\Users\User\Documents\Projects\edge\edges-master\private\edgesDetectMex.cpp:101:63: error: cannot convert
'const int*' to 'const size_t* {aka const long long unsigned int*}' for argument '2' to 'mxArray*
mxCreateNumericArray_730(size_t, const size_t*, mxClassID, mxComplexity)'
pl[1] = mxCreateNumericArray(3,indDims,mxUINT32_CLASS,mxREAL);
^
E:\Users\User\Documents\Projects\edge\edges-master\private\edgesDetectMex.cpp:103:71: error: cannot convert
'const int*' to 'const size_t* {aka const long long unsigned int*}' for argument '2' to 'mxArray*
mxCreateNumericArray_730(size_t, const size_t*, mxClassID, mxComplexity)'
if(nl>2) pl[2] = mxCreateNumericArray(5,segDims,mxUINT8_CLASS,mxREAL);
^

What should I do to ignore these errors? Is there anyone encounter the same problems?
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions