regarding SWIG

Diez B. Roggisch deets at nospam.web.de
Tue Jul 22 09:30:36 EDT 2008


Anish Chapagain wrote:

> Hi..
> I'm new to SWIG and need to create Wrapper for C code,
> so, I have installed the SWIG already but doesnot know how to run it
> for generating Interface file...
> My C code is in message.c so what do i need to do the first
> step..uisng SWIG..i read the documentation but cannot grasp creating
> interface file.

If it's pure C, stop using SWIG. Create a DLL/SO-file of your message.c &
use ctypes to wrap that.


Diez



More information about the Python-list mailing list