Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AlvarHHM opened this issue Apr 1, 2017 · 2 comments

Comments

@AlvarHHM
Copy link

AlvarHHM commented Apr 1, 2017

.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

@xiaofengzhiyu
Copy link

any solution about this ?

@filamoon
Copy link

Got the same error in MacOS. But it is working in Linux 64.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants