-
Notifications
You must be signed in to change notification settings - Fork 4
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
Error compiling pyvle #12
Comments
According to [1] the PyLong_FromLong is for Python3. But you can do:
#if PY_MAJOR_VERSION >= 3
PyLong_FromLong(...)
#else
PyInt_FromLong(...)
#endif
[1] http://python3porting.com/cextensions.html
|
Thanks, https://docs.python.org/2/c-api/int.html There is something that I d'ont understand here. |
Ok I have both python2.7 and python 3.6 installed. |
During compilation, you must have the include directories (use make VERBOSE=1).
|
The directive in CMakeList : EXECUTE_PROCESS( return version 2.7, but that is not the version found by cmake. |
I get this error when compiling pyvle :
/pub/src/vledev/pyvle/src/convert.cpp:52:18: error: ‘PyInt_FromLong’ was not declared in this scope
result = PyInt_FromLong(
^~~~~~~~~~~~~~
/pub/src/vledev/pyvle/src/convert.cpp:52:18: note: suggested alternative: ‘PyLong_FromLong’
I try to compile pyvle with :
The text was updated successfully, but these errors were encountered: