Skip to content Skip to sidebar Skip to footer
Showing posts with the label Swig

Wrapping A C++ Class In Python Using Swig

example.h: #ifndef EXAMPLE_H #define EXAMPLE_H class Math { public: int pi() const; void … Read more Wrapping A C++ Class In Python Using Swig

Combining Ctypes And Swig

I have been using SWIG for a long time - generally I like it. But doing callback functions seems (… Read more Combining Ctypes And Swig

Calling A Python Function In C++ With Swig

Here is my c++ code: void callMethod(void (*someMethod)()) { (*someMethod)(); } My Swig .i fil… Read more Calling A Python Function In C++ With Swig

A Trivial Python Swig Error Question

I am trying to get Python running with swig to do C/C++. I am running the tutorial here, 'buil… Read more A Trivial Python Swig Error Question

Swig_shared_ptr Macro With Templated Class

I'm using SWIG with boost shared pointers to create python extensions. My current issue is tha… Read more Swig_shared_ptr Macro With Templated Class

Can I Use Generated Swig Code To Convert C++ Object To Pyobject?

I'm working on embedding python into my C++ program using swig. At the moment I have a object w… Read more Can I Use Generated Swig Code To Convert C++ Object To Pyobject?

Swig Wrapping C++ For Python: Translating A List Of Strings To An Stl Vector Of Stl Strings

I would like to wrap a C++ function with SWIG which accepts a vector of STL strings as an input arg… Read more Swig Wrapping C++ For Python: Translating A List Of Strings To An Stl Vector Of Stl Strings

Python Swig : Importerror Wrong Elf Class: Elfclass64

I am trying to interface from python to c++ code via swig. I get the following error , while trying… Read more Python Swig : Importerror Wrong Elf Class: Elfclass64