Am Dienstag, den 25.04.2006, 16:44 -0500 schrieb Jonathon Jongsma: > On 4/25/06, Murray Cumming <[EMAIL PROTECTED]> wrote: > > I don't have more ideas, I'm afraid. I could play around with the source > > to try to avoid the error, if I could reproduce the error. > > > > If you get desperate, you might pull libsigc++ apart to try to create a > > test case. Maybe it's a compiler bug. > > > > Just in case this triggers any ideas for anybody else: > > I modified trackable.h as follows just to see what would happen. I > commented out the problematic typedef and the callbacks_ member that > was defined with this typedef and defined callbacks_ in terms of the > raw type. For instance: > > private: > //typedef std::list<trackable_callback> callback_list; > //callback_list callbacks_; > std::list<trackable_callback> callbacks_; // line 78 > bool clearing_; > > Now I get this error when compiling: > > Making all in sigc++ > make[2]: Entering directory `/home/jonathon/.cvs/gnome2/libsigc++2/sigc++' > /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. > -I.. -I.. -g -O2 -c > signal_base.cc > g++ -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -g -O2 > -Wp,-MD,.deps/signal_base.pp -c signal_ > base.cc -fPIC -DPIC -o .libs/signal_base.o > ../sigc++/trackable.h:78: error: using-declaration for non-member at class > scope > ../sigc++/trackable.h:78: error: expected ';' before '<' token
Try ::std::list instead of std::list. MIGHT work or not. > > > I don't see any 'using' declaration anywhere. I even ran it through > the preprocessor with g++ -E and didn't see any evidence of a 'using' > declaration (other than those that pull C library functions into the > std namespace). So I'm now just as confused as I was before. But I > thought I'd throw it out in case it sparked an idea for somebody else. Oh I fear most of us have to live with those strange and cryptic error messages from GCC. Yes, there is no using. I guess this has something to do with templates and stuff. Had a similar problem once. > > Jonner Aristid _______________________________________________ libsigc-list mailing list libsigc-list@gnome.org http://mail.gnome.org/mailman/listinfo/libsigc-list