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

Re: How do I resize a CList inside a VBox, inside a Notebook inside...



In message <m367c19be9.fsf@linux2.worldnet.fr>, Guillaume Laurent writes:
[...]
>> Then I tryed Gtk--0.10.1, but no luck (it looked like it wanted to
>> use the accelaerator table stuff rather then the apparently newer
>> accelerator group stuff).
>
>This means it's somehow trying to compile against a 1.0.x version of
>gtk+. Check what ./configure says, and that you're not having
>leftovers from your previous gtk+ and Gtk-- setup lying around.

I thought I had managed to get Gtk-- to find the "new" gtk+, but
apparenlty not.

After following your advice and removing all vestages of the old
gtk+, and installing the new one in the default place (as opposed
to my prior attempt to get it running in a new, safe from harm
place) my Gtk--0.10.1 problem has changed to:

./../base.gen_h:276: invalid use of undefined type `struct Gtk_Style'
./../base.gen_h: In method `class Gtk_ObjectHandle<Gtk_Style> & Gtk_ObjectHandle<Gtk_Style>::operator =(class Gtk_ObjectHandle<Gtk_Style> &)':
./../base.gen_h:300: invalid use of undefined type `struct Gtk_Style'
./../base.gen_h: In method `Gtk_ObjectHandle<Gtk_Style>::~Gtk_ObjectHandle()':
./../base.gen_h:319: invalid use of undefined type `struct Gtk_Style'
./../list.gen_h: At top level:
In file included from /usr/include/g++/list:6,
                 from ./../container.gen_h:15,
                 from ../../src/gtk--/bin.h:9,
                 from ../../src/gtk--/alignment.h:9,
                 from ../../src/gtk--.h:212,
                 from gtk--.cc:32:
./../list.gen_h:8: base class `Gtk_Container' has incomplete type

[...]
>Gtk-- 0.10.1 should work with gtk+ 1.1.5, really :-).

Ok, I'll see if i can figure out what's wrong with my system...

My first guess is maybe that the non GTKMM_HAVE_MEMBER_TEMPLATES
or non GTKMM_HAVE_AUTO_PTR code hasn't been well tested (and that
is what configure figures I should use), but the failing code seems
unrelated to either of those #defs.

Giving up my search for a cause, and just putting new #includes wherever
the seem to be called for is getting me much farther.

Changing 'class Gtk_Style;' in widget.gen_h to an include of gtk--/style.h
seems to have eliminated almost all of the errors.

I also porformed the unmitigated hack of changing /usr/include/g++/list
include stl's list.h via a full path to get it to pick up it's own
list.h rather then gtk--'s!  I must find a better way, but not yet, first
I need all possable speed for the following brick wall:

c++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -DG_LOG_DOMAIN=\"Gtk--\" -I. -I. -I./.. -I.. -I/usr/X11R6/include -I/usr/local/lib/glib/include -I/usr/local/include -g -O2 -Wall -Wno-unused -ansi -pedantic -c -fPIC -DPIC clist.cc
In file included from /usr/include/g++/std/bastring.h:571,
                 from /usr/include/g++/std/string.h:6,
                 from /usr/include/g++/string:5,
                 from ../../src/gtk--/base.h:8,
                 from ../../src/gtk--/object.h:11,
                 from ../../src/gtk--/widget.h:13,
                 from ../../src/gtk--/container.h:10,
                 from ../../src/gtk--/clist.h:9,
                 from clist.cc:4:
/usr/include/g++/std/sinst.h:60: ambiguous template instantiation for `operator !=(const char *, const basic_string<char,string_char_traits<char> > &)' requested
/usr/include/g++/std/sinst.h:60: ambiguous template instantiation for `operator !=(const basic_string<char,string_char_traits<char> > &, const char *)' requested
/usr/include/g++/std/sinst.h:62: ambiguous template instantiation for `operator >(const char *, const basic_string<char,string_char_traits<char> > &)' requested
/usr/include/g++/std/sinst.h:62: ambiguous template instantiation for `operator >(const basic_string<char,string_char_traits<char> > &, const char *)' requested
/usr/include/g++/std/sinst.h:63: ambiguous template instantiation for `operator <=(const char *, const basic_string<char,string_char_traits<char> > &)' requested
/usr/include/g++/std/sinst.h:63: ambiguous template instantiation for `operator <=(const basic_string<char,string_char_traits<char> > &, const char *)' requested
/usr/include/g++/std/sinst.h:64: ambiguous template instantiation for `operator >=(const char *, const basic_string<char,string_char_traits<char> > &)' requested
/usr/include/g++/std/sinst.h:64: ambiguous template instantiation for `operator >=(const basic_string<char,string_char_traits<char> > &, const char *)' requested



This doesn't seem to be a Gtk-- problem, but a gcc one.  Are there any
known problems compiling Gtk-- with gcc version 2.7.2.1?  Any known
workarounds?



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