[gtkmm] gcc-3.3 and gtkmm-2.2.1



Hi all,

Including glibmm/ustring.h from gtkmm-2.2.1 in my code gives rise to the 
following error when trying to compile it with gcc-3.3 (as you can see, I 
have gtkmm installed in /opt/gnome-2.2):

/opt/gnome-2.2/include/gtkmm-2.0/glibmm/ustring.h:532: error: `template<class
   In, class ValueType = typename std::iterator_traits<_Iterator>::value_type>
   struct Glib::ustring::SequenceToString' is private
/opt/gnome-2.2/include/gtkmm-2.0/glibmm/ustring.h:548: error: within this
   context
/opt/gnome-2.2/include/gtkmm-2.0/glibmm/ustring.h:532: error: `template<class
   In, class ValueType = typename std::iterator_traits<_Iterator>::value_type>
   struct Glib::ustring::SequenceToString' is private
/opt/gnome-2.2/include/gtkmm-2.0/glibmm/ustring.h:554: error: within this
   context
/opt/gnome-2.2/include/gtkmm-2.0/glibmm/ustring.h:532: error: `template<class
   In, class ValueType = typename std::iterator_traits<_Iterator>::value_type>
   struct Glib::ustring::SequenceToString' is private
/opt/gnome-2.2/include/gtkmm-2.0/glibmm/ustring.h:560: error: within this
   context
/opt/gnome-2.2/include/gtkmm-2.0/glibmm/ustring.h:532: error: `template<class
   In, class ValueType = typename std::iterator_traits<_Iterator>::value_type>
   struct Glib::ustring::SequenceToString' is private
/opt/gnome-2.2/include/gtkmm-2.0/glibmm/ustring.h:566: error: within this
   context

In ustring.h, as it happens Glib::ustring::SequenceToString is private at line 
532 (but making it public generates another series of errors).

It compiles OK with gcc-3.2.*.

This appears either to be a gcc-3.3 bug, or a gtkmm problem revealed by 
gcc-3.3.

For what it is worth, gtkmm-1.2.10 works fine with gcc-3.3.

Regards,

Chris.




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