[gtkmm] Can't compile programs with g++-3.3



I copied the code frome the tutorial http://www.gtkmm.org/gtkmm2/docs/tutorial/html/ch03.html:
#include <gtkmm.h>

int main(int argc, char *argv[])
{
    Gtk::Main kit(argc, argv);

    Gtk::Window window;

    Gtk::Main::run(window);

    return 0;
}

when i compile it with the command: /usr/bin/g++-3.3 simple.cc -o simple`pkg-config gtkmm-2.0 --cflags --libs`
it gave me the following errors:
/usr/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
/usr/include/gtkmm-2.0/glibmm/ustring.h:548: error: within this context
/usr/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
/usr/include/gtkmm-2.0/glibmm/ustring.h:554: error: within this context
/usr/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
/usr/include/gtkmm-2.0/glibmm/ustring.h:560: error: within this context
/usr/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
/usr/include/gtkmm-2.0/glibmm/ustring.h:566: error: within this context

   But when i compiled it with g++-3.2:
/usr/bin/g++-3.2 simple.cc -o simple`pkg-config gtkmm-2.0 --cflags --libs`
everything was ok.
   Could anybody explain it?

   Thanks
   Sincerely
   Shixin Zeng




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