My best guess is that $self is something that is a bit more recent in
swig.  I wasn't aware of that.  Can you get a newer version of swig?
I'll try to figure out when $self appeared.

  Nate

2009/1/12 Dan Gibson <gib...@cs.wisc.edu>:
> I'm running into a compile error when building a SWIG-generated file:
> build/ALPHA_SE/python/swig/event_wrap.cc: In function 'void
> EventQueue_schedule(EventQueue*, Event*, Tick)':
> build/ALPHA_SE/python/swig/event_wrap.cc:2892: error: '$self' was not
> declared in this scope
> build/ALPHA_SE/python/swig/event_wrap.cc: In function 'void
> EventQueue_deschedule(EventQueue*, Event*)':
> build/ALPHA_SE/python/swig/event_wrap.cc:2895: error: '$self' was not
> declared in this scope
>
> I'm a SWIG-noob -- is this something very simple? m5-stable builds just fine
> with my environment.
>
> Here are my various versions:
> gcc version 4.1.2 20071124 (Red Hat 4.1.2-42)
> Python 2.4.3
> scons 0.97.D001
> SWIG Version 1.3.29
>
> Manually removing the $ fixes the problem, but I wonder if this is not a
> sign of a bigger problem (and the file is swig-generated anyway...). Any
> thoughts? Others in the same build environment see the same behavior.
>
> Regards,
> Dan
>
> --
> http://www.cs.wisc.edu/~gibson [esc]:wq!
>
> _______________________________________________
> m5-dev mailing list
> m5-dev@m5sim.org
> http://m5sim.org/mailman/listinfo/m5-dev
>
>
_______________________________________________
m5-dev mailing list
m5-dev@m5sim.org
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to