Parse error befor % token

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Anish Chapagain

    Parse error befor % token

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

    example.i

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

    i have setup.py file and am running through,
    >>python setup.py 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.

    cheer's
Working...