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

Wrapping C-enum In A Python Module With Swig

I have a simple enum in C in myenum.h: enum MyEnum { ONE, TWO, THREE }; The problem is… Read more Wrapping C-enum In A Python Module With Swig

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 And Boost::variant

I'm in the middle of trying to wrap a c++ project into a python api using SWIG and I'm runn… Read more Swig And Boost::variant

How To Expose Std::vector As A Python List Using Swig?

I'm trying to expose this function to Python using SWIG: std::vector get_match_stats(); And I… Read more How To Expose Std::vector As A Python List Using Swig?

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

Add Hand-wrapped Method To Swig Output

I have a SWIG module where I want to add a hand-rolled method. %module frob %inline %{ int Fo… Read more Add Hand-wrapped Method To Swig Output

How Should I Unit Test A Code-generator?

This is a difficult and open-ended question I know, but I thought I'd throw it to the floor and… Read more How Should I Unit Test A Code-generator?

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

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

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