Skip to content

invalid conversion from ‘__pyx_t_14_RandomForests_INT32* {aka long int*}’ to ‘const int*’ #2

@AlvarHHM

Description

@AlvarHHM
.pyxbld/temp.linux-i686-2.7/pyrex/_RandomForests.cpp:2112:861: error: invalid conversion from ‘__pyx_t_14_RandomForests_INT32* {aka long int*}’ to ‘const int*’ [-fpermissive]
 der.diminfo[1].strides))), __pyx_t_16, __pyx_v_fid, __pyx_v_thr, __pyx_v_gain);
                                                                              ^
In file included from .pyxbld/temp.linux-i686-2.7/pyrex/_RandomForests.cpp:451:0:
./_random_forests.h:3:6: note:   initializing argument 5 of ‘void forestFindThr(int, int, int, const float*, const int*, const float*, const int*, int, int&, float&, double&)’
 void forestFindThr(int H, int N, int F, const float *data, const int *hs,
      ^
.pyxbld/temp.linux-i686-2.7/pyrex/_RandomForests.cpp:2112:861: error: invalid conversion from ‘__pyx_t_14_RandomForests_INT32* {aka long int*}’ to ‘const int*’ [-fpermissive]
 der.diminfo[1].strides))), __pyx_t_16, __pyx_v_fid, __pyx_v_thr, __pyx_v_gain);

I have tried to run the example code but encounter the following error

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