|
前面下载了一个linq编译没有通过,以为是linq的问题
今天按照它网页上的文档说明,复制了它的代码:
- //simple.cc
- #include <gtkmm.h>
- int main(int argc, char *argv[])
- {
- Gtk::Main kit(argc, argv);
- Gtk::Window window;
- Gtk::Main::run(window);
-
- return 0;
- }
复制代码
使用它说明的编译方法:
g++ simple.cc -o simple `pkg-config gtkmm-2.0 --cflags --libs`
结果出现下面的错误:
In file included from /usr/include/gtkmm-2.0/glibmm/containerhandle_shared.h:34,
from /usr/include/gtkmm-2.0/glibmm/arrayhandle.h:24,
from /usr/include/gtkmm-2.0/glibmm.h:26,
from /usr/include/gtkmm-2.0/gtkmm.h:29,
from simple.cpp:1:
/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
记得当时编译linq的时候也是这个错误。
怎么办? |
|