I'm trying to play with the library on windows using the bindings for python.
Building was straightforward, but executing examples/position.py, I ran into this error message:
"ImporteError: generic_type: cannot initialize type "": an object with that name"
as you can see the variable name is temporary, and the function returns a pointer to its internal storage, that is temporary too, and it get deallocated by the time it gets used.
I'm trying to play with the library on windows using the bindings for python. Building was straightforward, but executing
examples/position.py
, I ran into this error message: "ImporteError: generic_type: cannot initialize type "": an object with that name"It ended up being the following function:
as you can see the variable
name
is temporary, and the function returns a pointer to its internal storage, that is temporary too, and it get deallocated by the time it gets used.