Skip to content Skip to sidebar Skip to footer
Showing posts with the label 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 No Module Named _example

I cannot reproduce the basic SWIG example on windows. My error is stated in the SWIG docs and I am … Read more Swig No Module Named _example

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 To Get Python Slicing To Work With My C++ Array Class Using Swig

I have an an array class, Array1D, defined in c++ which essentially wraps the STL vector class. I e… Read more How To Get Python Slicing To Work With My C++ Array Class Using Swig

Importing A .pyd (created With Swig) In Python 2.7.3 On Mac

I have created a .pyd file with SWIG under Windows named (_example.pyd). I am able to send the file… Read more Importing A .pyd (created With Swig) In Python 2.7.3 On Mac

Swig Cannot Convert Typedef Type Correct

I'm using SWIT to convert a vc project to python. I found when a struct has a member which type… Read more Swig Cannot Convert Typedef Type Correct