A minimal example of using SWIG.
HelloWorld.i, the SWIG interface file
%module helloworld //the name of the module SWIG will create
%{ //code inside %{...%} gets inserted into the wrapper file
#include "myheader.h" //helloworld_wrap.cxx includes this header
%}
...