[gtkmm] Error in compliing gtkmm program using GCC 3.4.2



Hi all,

I got some troubles in compiling my gtkmm programs
with gcc 3.4.2. For example, the error messages I got
when compiled regexxer-0.7 are attached.
I am using glibmm-2.4.4, gtkmm-2.4.5 and
g++ (GCC) 3.4.2  (Gentoo Linux 3.4.2-r2, ssp-3.4.1-1,
pie-8.7.6.5).

Any idea about this?
Btw, everything is fine when I use gcc 3.3.4.

Thanks,

dan

-------------------------------------------------
if g++ -DHAVE_CONFIG_H   -I.. -I..
-DREGEXXER_DATADIR=\""/usr/local/share"\"
-DREGEXXER_GCONF_DIRECTORY=\""/apps/regexxer"\"
-DREGEXXER_LOCALEDIR=\""/usr/local/share/locale"\"
-DORBIT2=1 -pthread -I/usr/include/gtkmm-2.0
-I/usr/lib/gtkmm-2.0/include -I/usr/include/gtk-2.0
-I/usr/lib/sigc++-1.2/include
-I/usr/include/sigc++-1.2 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/lib/gtk-2.0/include
-I/usr/X11R6/include -I/usr/include/pango-1.0
-I/usr/include/freetype2 -I/usr/include/atk-1.0
-I/usr/include/gconfmm-2.0
-I/usr/lib/gconfmm-2.0/include -I/usr/include/gconf/2
-I/usr/include/orbit-2.0      -g -O2 -Wall -MT
aboutdialog.o -MD -MP -MF ".deps/aboutdialog.Tpo" -c
-o aboutdialog.o aboutdialog.cc; \
then mv -f ".deps/aboutdialog.Tpo"
".deps/aboutdialog.Po"; else rm -f
".deps/aboutdialog.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H   -I.. -I..
-DREGEXXER_DATADIR=\""/usr/local/share"\"
-DREGEXXER_GCONF_DIRECTORY=\""/apps/regexxer"\"
-DREGEXXER_LOCALEDIR=\""/usr/local/share/locale"\"
-DORBIT2=1 -pthread -I/usr/include/gtkmm-2.0
-I/usr/lib/gtkmm-2.0/include -I/usr/include/gtk-2.0
-I/usr/lib/sigc++-1.2/include
-I/usr/include/sigc++-1.2 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/lib/gtk-2.0/include
-I/usr/X11R6/include -I/usr/include/pango-1.0
-I/usr/include/freetype2 -I/usr/include/atk-1.0
-I/usr/include/gconfmm-2.0
-I/usr/lib/gconfmm-2.0/include -I/usr/include/gconf/2
-I/usr/include/orbit-2.0      -g -O2 -Wall -MT
controller.o -MD -MP -MF ".deps/controller.Tpo" -c -o
controller.o controller.cc; \
then mv -f ".deps/controller.Tpo"
".deps/controller.Po"; else rm -f
".deps/controller.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H   -I.. -I..
-DREGEXXER_DATADIR=\""/usr/local/share"\"
-DREGEXXER_GCONF_DIRECTORY=\""/apps/regexxer"\"
-DREGEXXER_LOCALEDIR=\""/usr/local/share/locale"\"
-DORBIT2=1 -pthread -I/usr/include/gtkmm-2.0
-I/usr/lib/gtkmm-2.0/include -I/usr/include/gtk-2.0
-I/usr/lib/sigc++-1.2/include
-I/usr/include/sigc++-1.2 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/lib/gtk-2.0/include
-I/usr/X11R6/include -I/usr/include/pango-1.0
-I/usr/include/freetype2 -I/usr/include/atk-1.0
-I/usr/include/gconfmm-2.0
-I/usr/lib/gconfmm-2.0/include -I/usr/include/gconf/2
-I/usr/include/orbit-2.0      -g -O2 -Wall -MT
filebuffer.o -MD -MP -MF ".deps/filebuffer.Tpo" -c -o
filebuffer.o filebuffer.cc; \
then mv -f ".deps/filebuffer.Tpo"
".deps/filebuffer.Po"; else rm -f
".deps/filebuffer.Tpo"; exit 1; fi
/usr/include/gtkmm-2.0/glibmm/containerhandle_shared.h:
In static member function `static
Glib::RefPtr<T_CppObject>
Glib::Container_Helpers::TypeTraits<Glib::RefPtr<T_CppObject>
>::to_cpp_type(typename T::BaseObjectType*) [with T =
Gtk::TextMark]':
/usr/include/gtkmm-2.0/glibmm/slisthandle.h:227:  
instantiated from `typename
Glib::Container_Helpers::SListHandleIterator<Tr>::value_type
Glib::Container_Helpers::SListHandleIterator<Tr>::operator*()
const [with Tr =
Glib::Container_Helpers::TypeTraits<Glib::RefPtr<Gtk::TextMark>
>]'
/usr/lib/gcc/i686-pc-linux-gnu/3.4.2/include/g++-v3/bits/stl_list.h:1139:
  instantiated from `void std::list<_Tp,
_Alloc>::_M_insert_dispatch(std::_List_iterator<_Tp>,
_InputIterator, _InputIterator, __false_type) [with
_InputIterator =
Glib::Container_Helpers::SListHandleIterator<Glib::Container_Helpers::TypeTraits<Glib::RefPtr<Gtk::TextMark>
> >, _Tp = Glib::RefPtr<Gtk::TextMark>, _Alloc =
std::allocator<Glib::RefPtr<Gtk::TextMark> >]'
/usr/lib/gcc/i686-pc-linux-gnu/3.4.2/include/g++-v3/bits/stl_list.h:852:
  instantiated from `void std::list<_Tp,
_Alloc>::insert(std::_List_iterator<_Tp>,
_InputIterator, _InputIterator) [with _InputIterator =
Glib::Container_Helpers::SListHandleIterator<Glib::Container_Helpers::TypeTraits<Glib::RefPtr<Gtk::TextMark>
> >, _Tp = Glib::RefPtr<Gtk::TextMark>, _Alloc =
std::allocator<Glib::RefPtr<Gtk::TextMark> >]'
/usr/lib/gcc/i686-pc-linux-gnu/3.4.2/include/g++-v3/bits/stl_list.h:531:
  instantiated from `std::list<_Tp,
_Alloc>::list(_InputIterator, _InputIterator, const
typename std::_List_base<_Tp,
_Alloc>::allocator_type&) [with _InputIterator =
Glib::Container_Helpers::SListHandleIterator<Glib::Container_Helpers::TypeTraits<Glib::RefPtr<Gtk::TextMark>
> >, _Tp = Glib::RefPtr<Gtk::TextMark>, _Alloc =
std::allocator<Glib::RefPtr<Gtk::TextMark> >]'
/usr/include/gtkmm-2.0/glibmm/slisthandle.h:349:  
instantiated from `Glib::SListHandle<T, Tr>::operator
std::list<U, std::allocator<_Tp1> >() const [with U =
Glib::RefPtr<Gtk::TextMark>, T =
Glib::RefPtr<Gtk::TextMark>, Tr =
Glib::Container_Helpers::TypeTraits<Glib::RefPtr<Gtk::TextMark>
>]'
filebuffer.cc:653:   instantiated from here
/usr/include/gtkmm-2.0/glibmm/containerhandle_shared.h:205:
error: cannot convert `GtkTextMark*' to `GObject*' for
argument `1' to `Glib::RefPtr<Glib::Object>
Glib::wrap(GObject*, bool)'




=====
----------------------------------------------------------
Have fun!
__________________________________________________________


		
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail 



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