Parse error befor % token

Anish Chapagain anishchapagain at
Wed Aug 13 12:52:56 CEST 2008

i tried to compile the swig .i file but am having probel with the
error: parse error before % token


1. %module example
2. %{
3. #include <header.h>
4. %}
6. %include "header.h"

i have file and am running through,
>>python build_ext

but is showing parse error before % token in example.i in line 1 and
also in 4.
Thank's for any help on this matter in advance
also, is there any live example having multiple .i files in single
interface SWIG file.


More information about the Python-list mailing list