According to the CHANGES file, it appears that $self was added in swig 1.3.30. It also appears that before that, people just used self without the $. I'm tempted to just raise the minimum version of swig to 1.3.30 since it is two years old, but we could put in some #defines or something like that as well. Dan, does upgrading cause pain?
Anyone have any opinions? Nate 2009/1/12 Dan Gibson <[email protected]>: > 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 > [email protected] > http://m5sim.org/mailman/listinfo/m5-dev > > _______________________________________________ m5-dev mailing list [email protected] http://m5sim.org/mailman/listinfo/m5-dev
