Using C++ class in Python 2.7 and 3.x
Hey, I was trying to write a Python C++ wrapper as described in the Tutorial: "Using a C++ class in Python".
Now to my question, is there a way to compile the Module for Python 2.7 and 3 simultaneously using catkin? So i can import the wrapper Class in both versions?
Because currently when Importing the wrapper to python 3 this error is thrown: ImportError: dynamic module does not define module export function (PyInit__wrapper_cpp) Since i can only link it against the python 2 libs.
Under Python 2 it is currently working without any errors.
Thanks for your help, Thomas