[C++-sig] [Swig-user] How to wrap a existing DLL to a python module?

Bruce Who bruce.who.hk at gmail.com
Sun Apr 29 17:09:35 CEST 2007

Hi, William

Thanks! I have tried %include, and it works! This is my code:

%module pyTE
%include "TEVLib.h"

%inline %{
#include "TEVLib.h"


and I find that the #include statement is necessary too, what's the
difference between %include and #include?

On 4/29/07, William S Fulton <wsf at fultondesigns.co.uk> wrote:
> Er, this is one of the things that SWIG is designed to do. Take a look
> at %include.
> William


More information about the Cplusplus-sig mailing list