How to wrap a pure C library (instead of C++)
Asked by
vilmos
Hi,
I would like to create python bindings for a C library. It seems pybindgen generates C++ code when Module.generate() is called, and I can indeed compile and link this .cc file with g++ (I also add -lmylib so that my lib is linked with the shared object). However, if I try to import this shared object module from python it complains about unresolved symbols:
<type 'exceptions.
What am I doing wrong?
Thanks
Vilmos
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- PyBindGen Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Gustavo Carneiro
- Solved:
- Last query:
- Last reply:
To post a message you must log in.