Re: [sigc] failure building from CVS



On 4/25/06, Murray Cumming <murrayc murrayc com> 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


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.

Jonner



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]