当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 8 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : [问题]qt4编译失败
帖子发表于 : 2008-06-19 8:19 

注册: 2006-06-07 13:55
帖子: 17
送出感谢: 0 次
接收感谢: 0 次
刚接触qt4,我是按照这个链接设置的。
http://wiki.ubuntu.org.cn/index.php?title=Gtk%E4%B8%8EQt%E7%BC%96%E8%AF%91%E7%8E%AF%E5%A2%83%E5%AE%89%E8%A3%85%E4%B8%8E%E9%85%8D%E7%BD%AE&variant=zh-cn#.E5.AE.89.E8.A3.85QT4.2FKDE4.E5.BC.80.E5.8F.91.E7.8E.AF.E5.A2.83

但是编译的时候有好多错误:

[code]g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -I. -o main.o main.cpp
main.cpp:1: 错误: expected constructor, destructor, or type conversion before ‘<’ token
In file included from /usr/include/c++/4.2/cstring:51,
from /usr/include/c++/4.2/bits/char_traits.h:45,
from /usr/include/c++/4.2/string:47,
from /usr/include/qt4/QtCore/qstring.h:62,
from /usr/include/qt4/QtCore/qobject.h:50,
from /usr/include/qt4/QtCore/qiodevice.h:48,
from /usr/include/qt4/QtCore/qdatastream.h:47,
from /usr/include/qt4/QtCore/qstringlist.h:48,
from /usr/include/qt4/QtGui/qcolor.h:49,
from /usr/include/qt4/QtGui/qpixmap.h:48,
from /usr/include/qt4/QtGui/qicon.h:49,
from /usr/include/qt4/QtGui/qabstractbutton.h:47,
from /usr/include/qt4/QtGui/qpushbutton.h:47,
from /usr/include/qt4/QtGui/QPushButton:1,
from main.cpp:2:
/usr/include/c++/4.2/cstddef:55: 错误: ‘::ptrdiff_t’尚未声明
In file included from /usr/include/c++/4.2/iosfwd:49,
from /usr/include/c++/4.2/bits/stl_algobase.h:70,
from /usr/include/c++/4.2/bits/char_traits.h:46,
from /usr/include/c++/4.2/string:47,
from /usr/include/qt4/QtCore/qstring.h:62,
from /usr/include/qt4/QtCore/qobject.h:50,
from /usr/include/qt4/QtCore/qiodevice.h:48,
from /usr/include/qt4/QtCore/qdatastream.h:47,
from /usr/include/qt4/QtCore/qstringlist.h:48,
from /usr/include/qt4/QtGui/qcolor.h:49,
from /usr/include/qt4/QtGui/qpixmap.h:48,
from /usr/include/qt4/QtGui/qicon.h:49,
from /usr/include/qt4/QtGui/qabstractbutton.h:47,
from /usr/include/qt4/QtGui/qpushbutton.h:47,
from /usr/include/qt4/QtGui/QPushButton:1,
from main.cpp:2:
/usr/include/c++/4.2/bits/postypes.h:78: 错误: ‘ptrdiff_t’没有命名一个类型
In file included from /usr/include/c++/4.2/bits/stl_algobase.h:74,
from /usr/include/c++/4.2/bits/char_traits.h:46,
from /usr/include/c++/4.2/string:47,
from /usr/include/qt4/QtCore/qstring.h:62,
from /usr/include/qt4/QtCore/qobject.h:50,
from /usr/include/qt4/QtCore/qiodevice.h:48,
from /usr/include/qt4/QtCore/qdatastream.h:47,
from /usr/include/qt4/QtCore/qstringlist.h:48,
from /usr/include/qt4/QtGui/qcolor.h:49,
from /usr/include/qt4/QtGui/qpixmap.h:48,
from /usr/include/qt4/QtGui/qicon.h:49,
from /usr/include/qt4/QtGui/qabstractbutton.h:47,
from /usr/include/qt4/QtGui/qpushbutton.h:47,
from /usr/include/qt4/QtGui/QPushButton:1,
from main.cpp:2:
/usr/include/c++/4.2/bits/stl_iterator_base_types.h:104: 错误: expected type-specifier before ‘ptrdiff_t’
/usr/include/c++/4.2/bits/stl_iterator_base_types.h:104: 错误: expected ‘>’ before ‘ptrdiff_t’
/usr/include/c++/4.2/bits/stl_iterator_base_types.h:115: 错误: ‘_Pointer’没有命名一个类型
/usr/include/c++/4.2/bits/stl_iterator_base_types.h:117: 错误: ‘_Reference’没有命名一个类型
/usr/include/c++/4.2/bits/stl_iterator_base_types.h:141: 错误: ‘ptrdiff_t’没有命名一个类型
/usr/include/c++/4.2/bits/stl_iterator_base_types.h:151: 错误: ‘ptrdiff_t’没有命名一个类型
In file included from /usr/include/c++/4.2/bits/stl_algobase.h:76,
from /usr/include/c++/4.2/bits/char_traits.h:46,
from /usr/include/c++/4.2/string:47,
from /usr/include/qt4/QtCore/qstring.h:62,
from /usr/include/qt4/QtCore/qobject.h:50,
from /usr/include/qt4/QtCore/qiodevice.h:48,
from /usr/include/qt4/QtCore/qdatastream.h:47,
from /usr/include/qt4/QtCore/qstringlist.h:48,
from /usr/include/qt4/QtGui/qcolor.h:49,
from /usr/include/qt4/QtGui/qpixmap.h:48,
from /usr/include/qt4/QtGui/qicon.h:49,
from /usr/include/qt4/QtGui/qabstractbutton.h:47,
from /usr/include/qt4/QtGui/qpushbutton.h:47,
from /usr/include/qt4/QtGui/QPushButton:1,
from main.cpp:2:
/usr/include/c++/4.2/bits/stl_iterator.h:99: 错误: 模板参数数目不对(不应是 5 个而应是 3 个)
/usr/include/c++/4.2/bits/stl_iterator_base_types.h:106: 错误: 提供给‘template<class _Category, class _Tp, class _Distance> struct std::iterator’
/usr/include/c++/4.2/bits/stl_iterator.h:386: 错误: 模板参数数目不对(不应是 5 个而应是 3 个)
/usr/include/c++/4.2/bits/stl_iterator_base_types.h:106: 错误: 提供给‘template<class _Category, class _Tp, class _Distance> struct std::iterator’
/usr/include/c++/4.2/bits/stl_iterator.h:461: 错误: 模板参数数目不对(不应是 5 个而应是 3 个)
/usr/include/c++/4.2/bits/stl_iterator_base_types.h:106: 错误: 提供给‘template<class _Category, class _Tp, class _Distance> struct std::iterator’
/usr/include/c++/4.2/bits/stl_iterator.h:539: 错误: 模板参数数目不对(不应是 5 个而应是 3 个)
/usr/include/c++/4.2/bits/stl_iterator_base_types.h:106: 错误: 提供给‘template<class _Category, class _Tp, class _Distance> struct std::iterator’
In file included from /usr/include/c++/4.2/bits/char_traits.h:46,
from /usr/include/c++/4.2/string:47,
from /usr/include/qt4/QtCore/qstring.h:62,
from /usr/include/qt4/QtCore/qobject.h:50,
from /usr/include/qt4/QtCore/qiodevice.h:48,
from /usr/include/qt4/QtCore/qdatastream.h:47,
from /usr/include/qt4/QtCore/qstringlist.h:48,
from /usr/include/qt4/QtGui/qcolor.h:49,
from /usr/include/qt4/QtGui/qpixmap.h:48,
from /usr/include/qt4/QtGui/qicon.h:49,
from /usr/include/qt4/QtGui/qabstractbutton.h:47,
from /usr/include/qt4/QtGui/qpushbutton.h:47,
from /usr/include/qt4/QtGui/QPushButton:1,
from main.cpp:2:
/usr/include/c++/4.2/bits/stl_algobase.h: In static member function ‘static _Tp* std::__copy_backward<true, std::random_access_iterator_tag>::__copy_b(const _Tp*, const _Tp*, _Tp*)’:
/usr/include/c++/4.2/bits/stl_algobase.h:445: 错误: ‘ptrdiff_t’没有命名一个类型
/usr/include/c++/4.2/bits/stl_algobase.h:446: 错误: ‘_Num’在此作用域中尚未声明
In file included from /usr/include/c++/4.2/i486-linux-gnu/bits/c++allocator.h:39,
from /usr/include/c++/4.2/bits/allocator.h:53,
from /usr/include/c++/4.2/memory:54,
from /usr/include/c++/4.2/string:48,
from /usr/include/qt4/QtCore/qstring.h:62,
from /usr/include/qt4/QtCore/qobject.h:50,
from /usr/include/qt4/QtCore/qiodevice.h:48,
from /usr/include/qt4/QtCore/qdatastream.h:47,
from /usr/include/qt4/QtCore/qstringlist.h:48,
from /usr/include/qt4/QtGui/qcolor.h:49,
from /usr/include/qt4/QtGui/qpixmap.h:48,
from /usr/include/qt4/QtGui/qicon.h:49,
from /usr/include/qt4/QtGui/qabstractbutton.h:47,
from /usr/include/qt4/QtGui/qpushbutton.h:47,
from /usr/include/qt4/QtGui/QPushButton:1,
from main.cpp:2:
/usr/include/c++/4.2/ext/new_allocator.h: At global scope:
/usr/include/c++/4.2/ext/new_allocator.h:43: 错误: ‘std::ptrdiff_t’尚未声明
/usr/include/c++/4.2/ext/new_allocator.h:57: 错误: ‘ptrdiff_t’没有命名一个类型
In file included from /usr/include/c++/4.2/memory:54,
from /usr/include/c++/4.2/string:48,
from /usr/include/qt4/QtCore/qstring.h:62,
from /usr/include/qt4/QtCore/qobject.h:50,
from /usr/include/qt4/QtCore/qiodevice.h:48,
from /usr/include/qt4/QtCore/qdatastream.h:47,
from /usr/include/qt4/QtCore/qstringlist.h:48,
from /usr/include/qt4/QtGui/qcolor.h:49,
from /usr/include/qt4/QtGui/qpixmap.h:48,
from /usr/include/qt4/QtGui/qicon.h:49,
from /usr/include/qt4/QtGui/qabstractbutton.h:47,
from /usr/include/qt4/QtGui/qpushbutton.h:47,
from /usr/include/qt4/QtGui/QPushButton:1,
from main.cpp:2:
/usr/include/c++/4.2/bits/allocator.h:68: 错误: ‘ptrdiff_t’没有命名一个类型
/usr/include/c++/4.2/bits/allocator.h:89: 错误: ‘ptrdiff_t’没有命名一个类型
In file included from /usr/include/c++/4.2/memory:58,
from /usr/include/c++/4.2/string:48,
from /usr/include/qt4/QtCore/qstring.h:62,
from /usr/include/qt4/QtCore/qobject.h:50,
from /usr/include/qt4/QtCore/qiodevice.h:48,
from /usr/include/qt4/QtCore/qdatastream.h:47,
from /usr/include/qt4/QtCore/qstringlist.h:48,
from /usr/include/qt4/QtGui/qcolor.h:49,
from /usr/include/qt4/QtGui/qpixmap.h:48,
from /usr/include/qt4/QtGui/qicon.h:49,
from /usr/include/qt4/QtGui/qabstractbutton.h:47,
from /usr/include/qt4/QtGui/qpushbutton.h:47,
from /usr/include/qt4/QtGui/QPushButton:1,
from main.cpp:2:
/usr/include/c++/4.2/bits/stl_raw_storage_iter.h:72: 错误: 模板参数数目不对(不应是 5 个而应是 3 个)
/usr/include/c++/4.2/bits/stl_iterator_base_types.h:106: 错误: 提供给‘template<class _Category, class _Tp, class _Distance> struct std::iterator’
In file included from /usr/include/c++/4.2/string:48,
from /usr/include/qt4/QtCore/qstring.h:62,
from /usr/include/qt4/QtCore/qobject.h:50,
from /usr/include/qt4/QtCore/qiodevice.h:48,
from /usr/include/qt4/QtCore/qdatastream.h:47,
from /usr/include/qt4/QtCore/qstringlist.h:48,
from /usr/include/qt4/QtGui/qcolor.h:49,
from /usr/include/qt4/QtGui/qpixmap.h:48,
from /usr/include/qt4/QtGui/qicon.h:49,
from /usr/include/qt4/QtGui/qabstractbutton.h:47,
from /usr/include/qt4/QtGui/qpushbutton.h:47,
from /usr/include/qt4/QtGui/QPushButton:1,
from main.cpp:2:
/usr/include/c++/4.2/memory:73: 错误: ‘ptrdiff_t’在此作用域中尚未声明
/usr/include/c++/4.2/memory:73: 错误: 模板参数 2 无效
/usr/include/c++/4.2/memory:74: 错误: invalid type in declaration before ‘(’ token
/usr/include/c++/4.2/memory:74: 错误: ‘int std::__get_temporary_buffer’声明为模板
/usr/include/c++/4.2/memory:74: 错误: ‘ptrdiff_t’在此作用域中尚未声明
/usr/include/c++/4.2/memory:74: 错误: expected primary-expression before ‘*’ token
/usr/include/c++/4.2/memory:74: 错误: expected primary-expression before ‘)’ token
/usr/include/c++/4.2/memory:109: 错误: ‘ptrdiff_t’在此作用域中尚未声明
/usr/include/c++/4.2/memory:109: 错误: 模板参数 2 无效
/usr/include/c++/4.2/memory:110: 错误: invalid type in declaration before ‘(’ token
/usr/include/c++/4.2/memory:110: 错误: ‘std::get_temporary_buffer’声明为‘inline’variable
/usr/include/c++/4.2/memory:110: 错误: ‘int std::get_temporary_buffer’声明为模板
/usr/include/c++/4.2/memory:110: 错误: ‘ptrdiff_t’在此作用域中尚未声明
In file included from /usr/include/c++/4.2/string:51,
from /usr/include/qt4/QtCore/qstring.h:62,
from /usr/include/qt4/QtCore/qobject.h:50,
from /usr/include/qt4/QtCore/qiodevice.h:48,
from /usr/include/qt4/QtCore/qdatastream.h:47,
from /usr/include/qt4/QtCore/qstringlist.h:48,
from /usr/include/qt4/QtGui/qcolor.h:49,
from /usr/include/qt4/QtGui/qpixmap.h:48,
from /usr/include/qt4/QtGui/qicon.h:49,
from /usr/include/qt4/QtGui/qabstractbutton.h:47,
from /usr/include/qt4/QtGui/qpushbutton.h:47,
from /usr/include/qt4/QtGui/QPushButton:1,
from main.cpp:2:
/usr/include/c++/4.2/bits/ostream_insert.h:47: 错误: ‘streamsize’未声明
/usr/include/c++/4.2/bits/ostream_insert.h: In function ‘void std::__ostream_write(std::basic_ostream<_CharT, _Traits>&, const _CharT*, int)’:
/usr/include/c++/4.2/bits/ostream_insert.h:52: 错误: ‘streamsize’没有命名一个类型
/usr/include/c++/4.2/bits/ostream_insert.h:53: 错误: ‘__put’在此作用域中尚未声明
/usr/include/c++/4.2/bits/ostream_insert.h: At global scope:
/usr/include/c++/4.2/bits/ostream_insert.h:59: 错误: ‘streamsize’未声明
/usr/include/c++/4.2/bits/ostream_insert.h:79: 错误: ‘streamsize’未声明
/usr/include/c++/4.2/bits/ostream_insert.h: In function ‘std::basic_ostream<_CharT, _Traits>& std::__ostream_insert(std::basic_ostream<_CharT, _Traits>&, const _CharT*, int)’:
/usr/include/c++/4.2/bits/ostream_insert.h:89: 错误: ‘streamsize’没有命名一个类型
/usr/include/c++/4.2/bits/ostream_insert.h:90: 错误: ‘__w’在此作用域中尚未声明
/usr/include/c++/4.2/bits/ostream_insert.h: At global scope:
/usr/include/c++/4.2/bits/ostream_insert.h:116: 错误: ‘streamsize’未声明
/usr/include/c++/4.2/bits/ostream_insert.h:120: 错误: ‘streamsize’未声明
In file included from /usr/include/c++/4.2/bits/stl_algo.h:66,
from /usr/include/c++/4.2/algorithm:68,
from /usr/include/c++/4.2/string:57,
from /usr/include/qt4/QtCore/qstring.h:62,
from /usr/include/qt4/QtCore/qobject.h:50,
from /usr/include/qt4/QtCore/qiodevice.h:48,
from /usr/include/qt4/QtCore/qdatastream.h:47,
from /usr/include/qt4/QtCore/qstringlist.h:48,
from /usr/include/qt4/QtGui/qcolor.h:49,
from /usr/include/qt4/QtGui/qpixmap.h:48,
from /usr/include/qt4/QtGui/qicon.h:49,
from /usr/include/qt4/QtGui/qabstractbutton.h:47,
from /usr/include/qt4/QtGui/qpushbutton.h:47,
from /usr/include/qt4/QtGui/QPushButton:1,
from main.cpp:2:
/usr/include/c++/4.2/bits/stl_tempbuf.h:86: 错误: ‘ptrdiff_t’没有命名一个类型
/usr/include/c++/4.2/bits/stl_tempbuf.h:89: 错误: ‘size_type’没有命名一个类型
/usr/include/c++/4.2/bits/stl_tempbuf.h:90: 错误: ‘size_type’没有命名一个类型
/usr/include/c++/4.2/bits/stl_tempbuf.h:102: 错误: ‘size_type’没有命名一个类型
/usr/include/c++/4.2/bits/stl_tempbuf.h:107: 错误: ‘size_type’没有命名一个类型
/usr/include/c++/4.2/bits/stl_tempbuf.h: In member function ‘void std::_Temporary_buffer<_ForwardIterator, _Tp>::_M_initialize_buffer(const _Tp&, std::__false_type)’:
/usr/include/c++/4.2/bits/stl_tempbuf.h:98: 错误: ‘_M_len’在此作用域中尚未声明
/usr/include/c++/4.2/bits/stl_tempbuf.h: In member function ‘_Tp* std::_Temporary_buffer<_ForwardIterator, _Tp>::end()’:
/usr/include/c++/4.2/bits/stl_tempbuf.h:119: 错误: ‘_M_len’在此作用域中尚未声明
/usr/include/c++/4.2/bits/stl_tempbuf.h: In destructor ‘std::_Temporary_buffer<_ForwardIterator, _Tp>::~_Temporary_buffer()’:
/usr/include/c++/4.2/bits/stl_tempbuf.h:129: 错误: ‘_M_len’在此作用域中尚未声明
/usr/include/c++/4.2/bits/stl_tempbuf.h: In constructor ‘std::_Temporary_buffer<_ForwardIterator, _Tp>::_Temporary_buffer(_ForwardIterator, _ForwardIterator)’:
/usr/include/c++/4.2/bits/stl_tempbuf.h:145: 错误: 类‘std::_Temporary_buffer<_ForwardIterator, _Tp>’没有名为‘_M_original_len’的字段
/usr/include/c++/4.2/bits/stl_tempbuf.h:146: 错误: 类‘std::_Temporary_buffer<_ForwardIterator, _Tp>’没有名为‘_M_len’的字段
/usr/include/c++/4.2/bits/stl_tempbuf.h:153: 错误: ‘size_type’在此作用域中尚未声明
/usr/include/c++/4.2/bits/stl_tempbuf.h:153: 错误: 模板参数 2 无效
/usr/include/c++/4.2/bits/stl_tempbuf.h:153: 错误: invalid type in declaration before ‘(’ token
/usr/include/c++/4.2/bits/stl_tempbuf.h:153: 错误: ‘get_temporary_buffer’在此作用域中尚未声明
/usr/include/c++/4.2/bits/stl_tempbuf.h:154: 错误: expected primary-expression before ‘>’ token
/usr/include/c++/4.2/bits/stl_tempbuf.h:154: 错误: ‘_M_original_len’在此作用域中尚未声明
/usr/include/c++/4.2/bits/stl_tempbuf.h:155: 错误: 对成员‘first’的请求出现在‘__p’中,而后者具有非类类型‘int’
/usr/include/c++/4.2/bits/stl_tempbuf.h:156: 错误: ‘_M_len’在此作用域中尚未声明
/usr/include/c++/4.2/bits/stl_tempbuf.h:156: 错误: 对成员‘second’的请求出现在‘__p’中,而后者具有非类类型‘int’
/usr/include/c++/4.2/bits/stl_tempbuf.h:164: 错误: ‘_M_len’在此作用域中尚未声明
In file included from /usr/include/c++/4.2/string:58,
from /usr/include/qt4/QtCore/qstring.h:62,
from /usr/include/qt4/QtCore/qobject.h:50,
from /usr/include/qt4/QtCore/qiodevice.h:48,
from /usr/include/qt4/QtCore/qdatastream.h:47,
from /usr/include/qt4/QtCore/qstringlist.h:48,
from /usr/include/qt4/QtGui/qcolor.h:49,
from /usr/include/qt4/QtGui/qpixmap.h:48,
from /usr/include/qt4/QtGui/qicon.h:49,
from /usr/include/qt4/QtGui/qabstractbutton.h:47,
from /usr/include/qt4/QtGui/qpushbutton.h:47,
from /usr/include/qt4/QtGui/QPushButton:1,
from main.cpp:2:
/usr/include/c++/4.2/bits/basic_string.h: At global scope:
/usr/include/c++/4.2/bits/basic_string.h: In instantiation of ‘std::basic_string<char, std::char_traits<char>, std::allocator<char> >’:
/usr/include/c++/4.2/bits/basic_string.tcc:979: instantiated from here
/usr/include/c++/4.2/bits/basic_string.h:121: 错误: no type named ‘difference_type’ in ‘struct std::allocator<char>’
/usr/include/c++/4.2/bits/basic_string.h: In instantiation of ‘std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >’:
/usr/include/c++/4.2/bits/basic_string.tcc:994: instantiated from here
/usr/include/c++/4.2/bits/basic_string.h:121: 错误: no type named ‘difference_type’ in ‘struct std::allocator<wchar_t>’
In file included from /usr/include/qt4/QtCore/qobject.h:50,
from /usr/include/qt4/QtCore/qiodevice.h:48,
from /usr/include/qt4/QtCore/qdatastream.h:47,
from /usr/include/qt4/QtCore/qstringlist.h:48,
from /usr/include/qt4/QtGui/qcolor.h:49,
from /usr/include/qt4/QtGui/qpixmap.h:48,
from /usr/include/qt4/QtGui/qicon.h:49,
from /usr/include/qt4/QtGui/qabstractbutton.h:47,
from /usr/include/qt4/QtGui/qpushbutton.h:47,
from /usr/include/qt4/QtGui/QPushButton:1,
from main.cpp:2:
/usr/include/c++/4.2/bits/stl_iterator.h: In instantiation of ‘__gnu_cxx::__normal_iterator<wchar_t*, std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > >’:
/usr/include/qt4/QtCore/qstring.h:1009: instantiated from here
/usr/include/c++/4.2/bits/stl_iterator.h:646: 错误: no type named ‘difference_type’ in ‘struct std::iterator_traits<wchar_t*>’
/usr/include/c++/4.2/bits/stl_iterator.h:697: 错误: no type named ‘difference_type’ in ‘struct std::iterator_traits<wchar_t*>’
/usr/include/c++/4.2/bits/stl_iterator.h:701: 错误: no type named ‘difference_type’ in ‘struct std::iterator_traits<wchar_t*>’
/usr/include/c++/4.2/bits/stl_iterator.h:705: 错误: no type named ‘difference_type’ in ‘struct std::iterator_traits<wchar_t*>’
/usr/include/c++/4.2/bits/stl_iterator.h:709: 错误: no type named ‘difference_type’ in ‘struct std::iterator_traits<wchar_t*>’
/usr/include/c++/4.2/bits/stl_iterator.h:713: 错误: no type named ‘difference_type’ in ‘struct std::iterator_traits<wchar_t*>’
In file included from /usr/include/c++/4.2/ios:48,
from /usr/include/c++/4.2/ostream:45,
from /usr/include/c++/4.2/iterator:70,
from /usr/include/qt4/QtCore/qlist.h:52,
from /usr/include/qt4/QtCore/qobject.h:52,
from /usr/include/qt4/QtCore/qiodevice.h:48,
from /usr/include/qt4/QtCore/qdatastream.h:47,
from /usr/include/qt4/QtCore/qstringlist.h:48,
from /usr/include/qt4/QtGui/qcolor.h:49,
from /usr/include/qt4/QtGui/qpixmap.h:48,
from /usr/include/qt4/QtGui/qicon.h:49,
from /usr/include/qt4/QtGui/qabstractbutton.h:47,
from /usr/include/qt4/QtGui/qpushbutton.h:47,
from /usr/include/qt4/QtGui/QPushButton:1,
from main.cpp:2:
/usr/include/c++/4.2/bits/ios_base.h:457: 错误: ‘streamsize’没有命名一个类型
/usr/include/c++/4.2/bits/ios_base.h:458: 错误: ‘streamsize’没有命名一个类型
/usr/include/c++/4.2/bits/ios_base.h:617: 错误: ‘streamsize’没有命名一个类型
/usr/include/c++/4.2/bits/ios_base.h:625: 错误: ‘streamsize’没有命名一个类型
/usr/include/c++/4.2/bits/ios_base.h:639: 错误: ‘streamsize’没有命名一个类型
/usr/include/c++/4.2/bits/ios_base.h:647: 错误: ‘streamsize’没有命名一个类型
In file included from /usr/include/c++/4.2/ios:49,
from /usr/include/c++/4.2/ostream:45,
from /usr/include/c++/4.2/iterator:70,
from /usr/include/qt4/QtCore/qlist.h:52,
from /usr/include/qt4/QtCore/qobject.h:52,
from /usr/include/qt4/QtCore/qiodevice.h:48,
from /usr/include/qt4/QtCore/qdatastream.h:47,
from /usr/include/qt4/QtCore/qstringlist.h:48,
from /usr/include/qt4/QtGui/qcolor.h:49,
from /usr/include/qt4/QtGui/qpixmap.h:48,
from /usr/include/qt4/QtGui/qicon.h:49,
from /usr/include/qt4/QtGui/qabstractbutton.h:47,
from /usr/include/qt4/QtGui/qpushbutton.h:47,
from /usr/include/qt4/QtGui/QPushButton:1,
from main.cpp:2:
/usr/include/c++/4.2/streambuf:60: 错误: expected constructor, destructor, or type conversion before ‘__copy_streambufs_eof’
/usr/include/c++/4.2/streambuf:155: 错误: ‘streamsize’没有命名一个类型
/usr/include/c++/4.2/streambuf:254: 错误: ‘streamsize’未声明
/usr/include/c++/4.2/streambuf:280: 错误: ‘streamsize’没有命名一个类型
/usr/include/c++/4.2/streambuf:353: 错误: ‘streamsize’没有命名一个类型
/usr/include/c++/4.2/streambuf:445: 错误: ‘streamsize’没有命名一个类型
/usr/include/c++/4.2/streambuf:587: 错误: ‘streamsize’未声明
/usr/include/c++/4.2/streambuf:644: 错误: ‘streamsize’没有命名一个类型
/usr/include/c++/4.2/streambuf:660: 错误: ‘streamsize’没有命名一个类型
/usr/include/c++/4.2/streambuf:737: 错误: ‘streamsize’没有命名一个类型
/usr/include/c++/4.2/streambuf:808: 错误: expected constructor, destructor, or type conversion before ‘__copy_streambufs_eof’
/usr/include/c++/4.2/streambuf:813: 错误: expected constructor, destructor, or type conversion before ‘__copy_streambufs_eof’
In file included from /usr/include/c++/4.2/streambuf:820,
from /usr/include/c++/4.2/ios:49,
from /usr/include/c++/4.2/ostream:45,
from /usr/include/c++/4.2/iterator:70,
from /usr/include/qt4/QtCore/qlist.h:52,
from /usr/include/qt4/QtCore/qobject.h:52,
from /usr/include/qt4/QtCore/qiodevice.h:48,
from /usr/include/qt4/QtCore/qdatastream.h:47,
from /usr/include/qt4/QtCore/qstringlist.h:48,
from /usr/include/qt4/QtGui/qcolor.h:49,
from /usr/include/qt4/QtGui/qpixmap.h:48,
from /usr/include/qt4/QtGui/qicon.h:49,
from /usr/include/qt4/QtGui/qabstractbutton.h:47,
from /usr/include/qt4/QtGui/qpushbutton.h:47,
from /usr/include/qt4/QtGui/QPushButton:1,
from main.cpp:2:
/usr/include/c++/4.2/bits/streambuf.tcc:49: 错误: expected constructor, destructor, or type conversion before ‘basic_streambuf’
/usr/include/c++/4.2/bits/streambuf.tcc:83: 错误: expected constructor, destructor, or type conversion before ‘basic_streambuf’
/usr/include/c++/4.2/bits/streambuf.tcc:120: 错误: expected constructor, destructor, or type conversion before ‘__copy_streambufs_eof’
/usr/include/c++/4.2/bits/streambuf.tcc:143: 错误: expected initializer before ‘__copy_streambufs’
/usr/include/c++/4.2/bits/streambuf.tcc:156: 错误: 启用模板自动实例化
/usr/include/c++/4.2/bits/streambuf.tcc:157: 错误: expected `;' before ‘__copy_streambufs’
/usr/include/c++/4.2/bits/streambuf.tcc:160: 错误: 启用模板自动实例化
/usr/include/c++/4.2/bits/streambuf.tcc:161: 错误: expected `;' before ‘__copy_streambufs_eof’
/usr/include/c++/4.2/bits/streambuf.tcc:167: 错误: 启用模板自动实例化
/usr/include/c++/4.2/bits/streambuf.tcc:168: 错误: expected `;' before ‘__copy_streambufs’
/usr/include/c++/4.2/bits/streambuf.tcc:171: 错误: 启用模板自动实例化
/usr/include/c++/4.2/bits/streambuf.tcc:172: 错误: expected `;' before ‘__copy_streambufs_eof’
In file included from /usr/include/c++/4.2/bits/basic_ios.h:41,
from /usr/include/c++/4.2/ios:50,
from /usr/include/c++/4.2/ostream:45,
from /usr/include/c++/4.2/iterator:70,
from /usr/include/qt4/QtCore/qlist.h:52,
from /usr/include/qt4/QtCore/qobject.h:52,
from /usr/include/qt4/QtCore/qiodevice.h:48,
from /usr/include/qt4/QtCore/qdatastream.h:47,
from /usr/include/qt4/QtCore/qstringlist.h:48,
from /usr/include/qt4/QtGui/qcolor.h:49,
from /usr/include/qt4/QtGui/qpixmap.h:48,
from /usr/include/qt4/QtGui/qicon.h:49,
from /usr/include/qt4/QtGui/qabstractbutton.h:47,
from /usr/include/qt4/QtGui/qpushbutton.h:47,
from /usr/include/qt4/QtGui/QPushButton:1,
from main.cpp:2:
/usr/include/c++/4.2/bits/streambuf_iterator.h:51: 错误: 模板参数数目不对(不应是 5 个而应是 3 个)
/usr/include/c++/4.2/bits/stl_iterator_base_types.h:106: 错误: 提供给‘template<class _Category, class _Tp, class _Distance> struct std::iterator’
/usr/include/c++/4.2/bits/streambuf_iterator.h:208: 错误: 模板参数数目不对(不应是 5 个而应是 3 个)
/usr/include/c++/4.2/bits/stl_iterator_base_types.h:106: 错误: 提供给‘template<class _Category, class _Tp, class _Distance> struct std::iterator’
/usr/include/c++/4.2/bits/streambuf_iterator.h:270: 错误: ‘streamsize’未声明
/usr/include/c++/4.2/bits/streambuf_iterator.h: In function ‘typename __gnu_cxx::__enable_if<std::__is_char<_Tp>::__value, std::ostreambuf_iterator<_CharT, std::char_traits<_CharT> > >::__type std::__copy_aux(_CharT*, _CharT*, std::ostreambuf_iterator<_CharT, std::char_traits<_CharT> >)’:
/usr/include/c++/4.2/bits/streambuf_iterator.h:304: 错误: ‘streamsize’没有命名一个类型
/usr/include/c++/4.2/bits/streambuf_iterator.h:305: 错误: ‘__num’在此作用域中尚未声明
/usr/include/c++/4.2/bits/streambuf_iterator.h: In function ‘typename __gnu_cxx::__enable_if<std::__is_char<_Tp>::__value, std::ostreambuf_iterator<_CharT, std::char_traits<_CharT> > >::__type std::__copy_aux(const _CharT*, const _CharT*, std::ostreambuf_iterator<_CharT, std::char_traits<_CharT> >)’:
/usr/include/c++/4.2/bits/streambuf_iterator.h:316: 错误: ‘streamsize’没有命名一个类型
/usr/include/c++/4.2/bits/streambuf_iterator.h:317: 错误: ‘__num’在此作用域中尚未声明
/usr/include/c++/4.2/bits/streambuf_iterator.h: In function ‘typename __gnu_cxx::__enable_if<std::__is_char<_Tp>::__value, _CharT*>::__type std::__copy_aux(std::istreambuf_iterator<_CharT, std::char_traits<_CharT> >, std::istreambuf_iterator<_CharT, std::char_traits<_CharT> >, _CharT*)’:
/usr/include/c++/4.2/bits/streambuf_iterator.h:339: 错误: ‘streamsize’没有命名一个类型
/usr/include/c++/4.2/bits/streambuf_iterator.h:340: 错误: ‘__n’在此作用域中尚未声明
/usr/include/c++/4.2/bits/streambuf_iterator.h: In function ‘typename __gnu_cxx::__enable_if<std::__is_char<_Tp>::__value, std::istreambuf_iterator<_CharT, std::char_traits<_CharT> > >::__type std::find(std::istreambuf_iterator<_CharT, std::char_traits<_CharT> >, std::istreambuf_iterator<_CharT, std::char_traits<_CharT> >, const _CharT&)’:
/usr/include/c++/4.2/bits/streambuf_iterator.h:376: 错误: ‘streamsize’在此作用域中尚未声明
/usr/include/c++/4.2/bits/streambuf_iterator.h:376: 错误: expected `;' before ‘__n’
/usr/include/c++/4.2/bits/streambuf_iterator.h:377: 错误: ‘__n’在此作用域中尚未声明
In file included from /usr/include/c++/4.2/bits/basic_ios.h:44,
from /usr/include/c++/4.2/ios:50,
from /usr/include/c++/4.2/ostream:45,
from /usr/include/c++/4.2/iterator:70,
from /usr/include/qt4/QtCore/qlist.h:52,
from /usr/include/qt4/QtCore/qobject.h:52,
from /usr/include/qt4/QtCore/qiodevice.h:48,
from /usr/include/qt4/QtCore/qdatastream.h:47,
from /usr/include/qt4/QtCore/qstringlist.h:48,
from /usr/include/qt4/QtGui/qcolor.h:49,
from /usr/include/qt4/QtGui/qpixmap.h:48,
from /usr/include/qt4/QtGui/qicon.h:49,
from /usr/include/qt4/QtGui/qabstractbutton.h:47,
from /usr/include/qt4/QtGui/qpushbutton.h:47,
from /usr/include/qt4/QtGui/QPushButton:1,
from main.cpp:2:
/usr/include/c++/4.2/bits/locale_facets.h: At global scope:
/usr/include/c++/4.2/bits/locale_facets.h:93: 错误: expected ‘,’ or ‘...’ before ‘__newlen’
In file included from /usr/include/c++/4.2/bits/basic_ios.h:44,
from /usr/include/c++/4.2/ios:50,
from /usr/include/c++/4.2/ostream:45,
from /usr/include/c++/4.2/iterator:70,
from /usr/include/qt4/QtCore/qlist.h:52,
from /usr/include/qt4/QtCore/qobject.h:52,
from /usr/include/qt4/QtCore/qiodevice.h:48,
from /usr/include/qt4/QtCore/qdatastream.h:47,
from /usr/include/qt4/QtCore/qstringlist.h:48,
from /usr/include/qt4/QtGui/qcolor.h:49,
from /usr/include/qt4/QtGui/qpixmap.h:48,
from /usr/include/qt4/QtGui/qicon.h:49,
from /usr/include/qt4/QtGui/qabstractbutton.h:47,
from /usr/include/qt4/QtGui/qpushbutton.h:47,
from /usr/include/qt4/QtGui/QPushButton:1,
from main.cpp:2:
/usr/include/c++/4.2/bits/locale_facets.h:2458: 错误: ‘streamsize’未声明
In file included from /usr/include/c++/4.2/iterator:70,
from /usr/include/qt4/QtCore/qlist.h:52,
from /usr/include/qt4/QtCore/qobject.h:52,
from /usr/include/qt4/QtCore/qiodevice.h:48,
from /usr/include/qt4/QtCore/qdatastream.h:47,
from /usr/include/qt4/QtCore/qstringlist.h:48,
from /usr/include/qt4/QtGui/qcolor.h:49,
from /usr/include/qt4/QtGui/qpixmap.h:48,
from /usr/include/qt4/QtGui/qicon.h:49,
from /usr/include/qt4/QtGui/qabstractbutton.h:47,
from /usr/include/qt4/QtGui/qpushbutton.h:47,
from /usr/include/qt4/QtGui/QPushButton:1,
from main.cpp:2:
/usr/include/c++/4.2/ostream:291: 错误: ‘streamsize’未声明
/usr/include/c++/4.2/ostream:315: 错误: ‘streamsize’未声明
/usr/include/c++/4.2/ostream: In member function ‘void std::basic_ostream<_CharT, _Traits>::_M_write(const _CharT*, int)’:
/usr/include/c++/4.2/ostream:293: 错误: ‘streamsize’没有命名一个类型
/usr/include/c++/4.2/ostream:294: 错误: ‘__put’在此作用域中尚未声明
/usr/include/c++/4.2/ostream: In function ‘std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const _CharT*)’:
/usr/include/c++/4.2/ostream:501: 错误: expected type-specifier before ‘streamsize’
/usr/include/c++/4.2/ostream:501: 错误: expected `>' before ‘streamsize’
/usr/include/c++/4.2/ostream:501: 错误: expected `(' before ‘streamsize’
/usr/include/c++/4.2/ostream:501: 错误: ‘streamsize’在此作用域中尚未声明
/usr/include/c++/4.2/ostream: In function ‘std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const char*)’:
/usr/include/c++/4.2/ostream:518: 错误: expected type-specifier before ‘streamsize’
/usr/include/c++/4.2/ostream:518: 错误: expected `>' before ‘streamsize’
/usr/include/c++/4.2/ostream:518: 错误: expected `(' before ‘streamsize’
/usr/include/c++/4.2/ostream:518: 错误: ‘streamsize’在此作用域中尚未声明
In file included from /usr/include/c++/4.2/locale:46,
from /usr/include/c++/4.2/bits/ostream.tcc:46,
from /usr/include/c++/4.2/ostream:572,
from /usr/include/c++/4.2/iterator:70,
from /usr/include/qt4/QtCore/qlist.h:52,
from /usr/include/qt4/QtCore/qobject.h:52,
from /usr/include/qt4/QtCore/qiodevice.h:48,
from /usr/include/qt4/QtCore/qdatastream.h:47,
from /usr/include/qt4/QtCore/qstringlist.h:48,
from /usr/include/qt4/QtGui/qcolor.h:49,
from /usr/include/qt4/QtGui/qpixmap.h:48,
from /usr/include/qt4/QtGui/qicon.h:49,
from /usr/include/qt4/QtGui/qabstractbutton.h:47,
from /usr/include/qt4/QtGui/qpushbutton.h:47,
from /usr/include/qt4/QtGui/QPushButton:1,
from main.cpp:2:
/usr/include/c++/4.2/bits/locale_facets.tcc: At global scope:
/usr/include/c++/4.2/bits/locale_facets.tcc:906: 错误: ‘streamsize’未声明
/usr/include/c++/4.2/bits/locale_facets.tcc: In member function ‘_OutIter std::num_put<_CharT, _OutIter>::_M_insert_int(_OutIter, std::ios_base&, _CharT, _ValueT) const’:
/usr/include/c++/4.2/bits/locale_facets.tcc:1045: 错误: ‘streamsize’没有命名一个类型
/usr/include/c++/4.2/bits/locale_facets.tcc:1046: 错误: ‘__w’在此作用域中尚未声明
/usr/include/c++/4.2/bits/locale_facets.tcc:1046: 错误: expected type-specifier before ‘streamsize’
/usr/include/c++/4.2/bits/locale_facets.tcc:1046: 错误: expected `>' before ‘streamsize’
/usr/include/c++/4.2/bits/locale_facets.tcc:1046: 错误: expected `(' before ‘streamsize’
/usr/include/c++/4.2/bits/locale_facets.tcc:1046: 错误: ‘streamsize’在此作用域中尚未声明
/usr/include/c++/4.2/bits/locale_facets.tcc:1047: 错误: expected `)' before ‘{’ token
/usr/include/c++/4.2/bits/locale_facets.tcc: In member function ‘_OutIter std::num_put<_CharT, _OutIter>::_M_insert_float(_OutIter, std::ios_base&, _CharT, char, _ValueT) const’:
/usr/include/c++/4.2/bits/locale_facets.tcc:1108: 错误: ‘streamsize’没有命名一个类型
/usr/include/c++/4.2/bits/locale_facets.tcc:1124: 错误: ‘__prec’在此作用域中尚未声明
/usr/include/c++/4.2/bits/locale_facets.tcc:1181: 错误: ‘streamsize’在此作用域中尚未声明
/usr/include/c++/4.2/bits/locale_facets.tcc:1181: 错误: expected `;' before ‘__off’
/usr/include/c++/4.2/bits/locale_facets.tcc:1184: 错误: ‘__off’在此作用域中尚未声明
/usr/include/c++/4.2/bits/locale_facets.tcc:1190: 错误: ‘__off’在此作用域中尚未声明
/usr/include/c++/4.2/bits/locale_facets.tcc:1198: 错误: ‘streamsize’没有命名一个类型
/usr/include/c++/4.2/bits/locale_facets.tcc:1199: 错误: ‘__w’在此作用域中尚未声明
/usr/include/c++/4.2/bits/locale_facets.tcc:1199: 错误: expected type-specifier before ‘streamsize’
/usr/include/c++/4.2/bits/locale_facets.tcc:1199: 错误: expected `>' before ‘streamsize’
/usr/include/c++/4.2/bits/locale_facets.tcc:1199: 错误: expected `(' before ‘streamsize’
/usr/include/c++/4.2/bits/locale_facets.tcc:1199: 错误: ‘streamsize’在此作用域中尚未声明
/usr/include/c++/4.2/bits/locale_facets.tcc:1200: 错误: expected `)' before ‘{’ token
/usr/include/c++/4.2/bits/locale_facets.tcc: In member function ‘virtual _OutIter std::num_put<_CharT, _OutIter>::do_put(_OutIter, std::ios_base&, _CharT, bool) const’:
/usr/include/c++/4.2/bits/locale_facets.tcc:1236: 错误: ‘streamsize’没有命名一个类型
/usr/include/c++/4.2/bits/locale_facets.tcc:1237: 错误: ‘__w’在此作用域中尚未声明
/usr/include/c++/4.2/bits/locale_facets.tcc:1237: 错误: expected type-specifier before ‘streamsize’
/usr/include/c++/4.2/bits/locale_facets.tcc:1237: 错误: expected `>' before ‘streamsize’
/usr/include/c++/4.2/bits/locale_facets.tcc:1237: 错误: expected `(' before ‘streamsize’
/usr/include/c++/4.2/bits/locale_facets.tcc:1237: 错误: ‘streamsize’在此作用域中尚未声明
/usr/include/c++/4.2/bits/locale_facets.tcc:1238: 错误: expected `)' before ‘{’ token
/usr/include/c++/4.2/bits/stl_iterator.h: At global scope:
/usr/include/c++/4.2/bits/stl_iterator.h: In instantiation of ‘__gnu_cxx::__normal_iterator<char*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >’:
/usr/include/c++/4.2/bits/locale_facets.tcc:1502: instantiated from here
/usr/include/c++/4.2/bits/stl_iterator.h:646: 错误: no type named ‘difference_type’ in ‘struct std::iterator_traits<char*>’
/usr/include/c++/4.2/bits/stl_iterator.h:697: 错误: no type named ‘difference_type’ in ‘struct std::iterator_traits<char*>’
/usr/include/c++/4.2/bits/stl_iterator.h:701: 错误: no type named ‘difference_type’ in ‘struct std::iterator_traits<char*>’
/usr/include/c++/4.2/bits/stl_iterator.h:705: 错误: no type named ‘difference_type’ in ‘struct std::iterator_traits<char*>’
/usr/include/c++/4.2/bits/stl_iterator.h:709: 错误: no type named ‘difference_type’ in ‘struct std::iterator_traits<char*>’
/usr/include/c++/4.2/bits/stl_iterator.h:713: 错误: no type named ‘difference_type’ in ‘struct std::iterator_traits<char*>’
/usr/include/c++/4.2/bits/locale_facets.tcc: In member function ‘_OutIter std::money_put<_CharT, _OutIter>::_M_insert(_OutIter, std::ios_base&, _CharT, const std::basic_string<_CharT, std::char_traits<_CharT>, std::allocator<_CharT> >&) const’:
/usr/include/c++/4.2/bits/locale_facets.tcc:1681: 错误: ‘class std::ios_base’没有名为‘width’的成员
/usr/include/c++/4.2/bits/locale_facets.tcc:1741: 错误: ‘class std::ios_base’没有名为‘width’的成员
/usr/include/c++/4.2/bits/locale_facets.tcc: At global scope:
/usr/include/c++/4.2/bits/locale_facets.tcc:2509: 错误: expected ‘,’ or ‘...’ before ‘__newlen’
/usr/include/c++/4.2/bits/locale_facets.tcc: In static member function ‘static void std::__pad<_CharT, _Traits>::_S_pad(std::ios_base&, _CharT, _CharT*, const _CharT*, int)’:
/usr/include/c++/4.2/bits/locale_facets.tcc:2512: 错误: ‘__newlen’在此作用域中尚未声明
/usr/include/c++/4.2/bits/locale_facets.tcc:2512: 错误: ‘__oldlen’在此作用域中尚未声明
/usr/include/c++/4.2/bits/locale_facets.tcc:2524: 错误: ‘__num’在此作用域中尚未声明
In file included from /usr/include/c++/4.2/ostream:572,
from /usr/include/c++/4.2/iterator:70,
from /usr/include/qt4/QtCore/qlist.h:52,
from /usr/include/qt4/QtCore/qobject.h:52,
from /usr/include/qt4/QtCore/qiodevice.h:48,
from /usr/include/qt4/QtCore/qdatastream.h:47,
from /usr/include/qt4/QtCore/qstringlist.h:48,
from /usr/include/qt4/QtGui/qcolor.h:49,
from /usr/include/qt4/QtGui/qpixmap.h:48,
from /usr/include/qt4/QtGui/qicon.h:49,
from /usr/include/qt4/QtGui/qabstractbutton.h:47,
from /usr/include/qt4/QtGui/qpushbutton.h:47,
from /usr/include/qt4/QtGui/QPushButton:1,
from main.cpp:2:
/usr/include/c++/4.2/bits/ostream.tcc: At global scope:
/usr/include/c++/4.2/bits/ostream.tcc:173: 错误: ‘streamsize’未声明
In file included from /usr/include/c++/4.2/iterator:71,
from /usr/include/qt4/QtCore/qlist.h:52,
from /usr/include/qt4/QtCore/qobject.h:52,
from /usr/include/qt4/QtCore/qiodevice.h:48,
from /usr/include/qt4/QtCore/qdatastream.h:47,
from /usr/include/qt4/QtCore/qstringlist.h:48,
from /usr/include/qt4/QtGui/qcolor.h:49,
from /usr/include/qt4/QtGui/qpixmap.h:48,
from /usr/include/qt4/QtGui/qicon.h:49,
from /usr/include/qt4/QtGui/qabstractbutton.h:47,
from /usr/include/qt4/QtGui/qpushbutton.h:47,
from /usr/include/qt4/QtGui/QPushButton:1,
from main.cpp:2:
/usr/include/c++/4.2/istream:92: 错误: ‘streamsize’没有命名一个类型
/usr/include/c++/4.2/istream:259: 错误: ‘streamsize’没有命名一个类型
/usr/include/c++/4.2/istream:333: 错误: ‘streamsize’未声明
/usr/include/c++/4.2/istream:344: 错误: ‘streamsize’未声明
/usr/include/c++/4.2/istream:406: 错误: ‘streamsize’未声明
/usr/include/c++/4.2/istream:417: 错误: ‘streamsize’未声明
/usr/include/c++/4.2/istream:444: 错误: expected ‘;’ before ‘(’ token
/usr/include/c++/4.2/istream:447: 错误: expected ‘;’ before ‘(’ token
/usr/include/c++/4.2/istream:476: 错误: ‘streamsize’未声明
/usr/include/c++/4.2/istream:494: 错误: ‘streamsize’没有命名一个类型
/usr/include/c++/4.2/istream: In constructor ‘std::basic_istream<_CharT, _Traits>::basic_istream(std::basic_streambuf<_CharT, _Traits>*)’:
/usr/include/c++/4.2/istream:104: 错误: 类‘std::basic_istream<_CharT, _Traits>’没有名为‘_M_gcount’的字段
/usr/include/c++/4.2/istream:104: 错误: ‘streamsize’的实参不依赖模板参数,所以‘streamsize’的声明必须可用
/usr/include/c++/4.2/istream:104: 错误: (如果您使用‘-fpermissive’,G++ 会接受您的代码,但是允许使用未定义的名称是不建议使用的风格)
/usr/include/c++/4.2/istream: In destructor ‘virtual std::basic_istream<_CharT, _Traits>::~basic_istream()’:
/usr/include/c++/4.2/istream:114: 错误: ‘_M_gcount’在此作用域中尚未声明
/usr/include/c++/4.2/istream:114: 错误: ‘streamsize’的实参不依赖模板参数,所以‘streamsize’的声明必须可用
/usr/include/c++/4.2/istream: In constructor ‘std::basic_istream<_CharT, _Traits>::basic_istream()’:
/usr/include/c++/4.2/istream:594: 错误: 类‘std::basic_istream<_CharT, _Traits>’没有名为‘_M_gcount’的字段
/usr/include/c++/4.2/istream:594: 错误: ‘streamsize’的实参不依赖模板参数,所以‘streamsize’的声明必须可用
/usr/include/c++/4.2/istream: At global scope:
/usr/include/c++/4.2/istream:605: 错误: ‘streamsize’未声明
/usr/include/c++/4.2/istream:610: 错误: 不是符号连接
/usr/include/c++/4.2/istream:610: 错误: ‘streamsize’在此作用域中尚未声明
/usr/include/c++/4.2/istream:615: 错误: 不是符号连接
/usr/include/c++/4.2/istream:615: 错误: ‘streamsize’在此作用域中尚未声明
/usr/include/c++/4.2/istream:615: 错误: expected primary-expression before ‘__delim’
/usr/include/c++/4.2/istream:615: 错误: initializer 表达式列表被看作复合表达式
/usr/include/c++/4.2/istream:621: 错误: ‘streamsize’未声明
/usr/include/c++/4.2/istream:626: 错误: 不是符号连接
/usr/include/c++/4.2/istream:626: 错误: ‘streamsize’在此作用域中尚未声明
/usr/include/c++/4.2/istream:631: 错误: 不是符号连接
/usr/include/c++/4.2/istream:631: 错误: ‘streamsize’在此作用域中尚未声明
/usr/include/c++/4.2/istream:631: 错误: expected primary-expression before ‘__delim’
/usr/include/c++/4.2/istream:631: 错误: initializer 表达式列表被看作复合表达式
In file included from /usr/include/c++/4.2/istream:845,
from /usr/include/c++/4.2/iterator:71,
from /usr/include/qt4/QtCore/qlist.h:52,
from /usr/include/qt4/QtCore/qobject.h:52,
from /usr/include/qt4/QtCore/qiodevice.h:48,
from /usr/include/qt4/QtCore/qdatastream.h:47,
from /usr/include/qt4/QtCore/qstringlist.h:48,
from /usr/include/qt4/QtGui/qcolor.h:49,
from /usr/include/qt4/QtGui/qpixmap.h:48,
from /usr/include/qt4/QtGui/qicon.h:49,
from /usr/include/qt4/QtGui/qabstractbutton.h:47,
from /usr/include/qt4/QtGui/qpushbutton.h:47,
from /usr/include/qt4/QtGui/QPushButton:1,
from main.cpp:2:
/usr/include/c++/4.2/bits/istream.tcc: In member function ‘typename std::basic_istream<_CharT, _Traits>::int_type std::basic_istream<_CharT, _Traits>::get()’:
/usr/include/c++/4.2/bits/istream.tcc:186: 错误: ‘_M_gcount’在此作用域中尚未声明
/usr/include/c++/4.2/bits/istream.tcc: In member function ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::get(_CharT&)’:
/usr/include/c++/4.2/bits/istream.tcc:215: 错误: ‘_M_gcount’在此作用域中尚未声明
/usr/include/c++/4.2/bits/istream.tcc: At global scope:
/usr/include/c++/4.2/bits/istream.tcc:245: 错误: ‘streamsize’未声明
/usr/include/c++/4.2/bits/istream.tcc: In member function ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::get(_CharT*, int, _CharT)’:
/usr/include/c++/4.2/bits/istream.tcc:247: 错误: ‘_M_gcount’在此作用域中尚未声明
/usr/include/c++/4.2/bits/istream.tcc: In member function ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::get(std::basic_streambuf<_CharT, _Traits>&, _CharT)’:
/usr/include/c++/4.2/bits/istream.tcc:289: 错误: ‘_M_gcount’在此作用域中尚未声明
/usr/include/c++/4.2/bits/istream.tcc: At global scope:
/usr/include/c++/4.2/bits/istream.tcc:326: 错误: ‘streamsize’未声明
/usr/include/c++/4.2/bits/istream.tcc: In member function ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::getline(_CharT*, int, _CharT)’:
/usr/include/c++/4.2/bits/istream.tcc:328: 错误: ‘_M_gcount’在此作用域中尚未声明
/usr/include/c++/4.2/bits/istream.tcc: In member function ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::ignore()’:
/usr/include/c++/4.2/bits/istream.tcc:383: 错误: ‘_M_gcount’在此作用域中尚未声明
/usr/include/c++/4.2/bits/istream.tcc: At global scope:
/usr/include/c++/4.2/bits/istream.tcc:409: 错误: 不是符号连接
/usr/include/c++/4.2/bits/istream.tcc:409: 错误: 非代理服务器
/usr/include/c++/4.2/bits/istream.tcc:409: 错误: ‘streamsize’在此作用域中尚未声明
/usr/include/c++/4.2/bits/istream.tcc:410: 错误: expected `;' before ‘{’ token
/usr/include/c++/4.2/bits/istream.tcc:465: 错误: 不是符号连接
/usr/include/c++/4.2/bits/istream.tcc:465: 错误: 非代理服务器
/usr/include/c++/4.2/bits/istream.tcc:465: 错误: ‘streamsize’在此作用域中尚未声明
/usr/include/c++/4.2/bits/istream.tcc:465: 错误: expected primary-expression before ‘__delim’
/usr/include/c++/4.2/bits/istream.tcc:466: 错误: expected `;' before ‘{’ token
/usr/include/c++/4.2/bits/istream.tcc: In member function ‘typename std::basic_istream<_CharT, _Traits>::int_type std::basic_istream<_CharT, _Traits>::peek()’:
/usr/include/c++/4.2/bits/istream.tcc:526: 错误: ‘_M_gcount’在此作用域中尚未声明
/usr/include/c++/4.2/bits/istream.tcc: At global scope:
/usr/include/c++/4.2/bits/istream.tcc:548: 错误: ‘streamsize’未声明
/usr/include/c++/4.2/bits/istream.tcc: In member function ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::read(_CharT*, int)’:
/usr/include/c++/4.2/bits/istream.tcc:550: 错误: ‘_M_gcount’在此作用域中尚未声明
/usr/include/c++/4.2/bits/istream.tcc: At global scope:
/usr/include/c++/4.2/bits/istream.tcc:571: 错误: expected constructor, destructor, or type conversion before ‘basic_istream’
/usr/include/c++/4.2/bits/istream.tcc: In member function ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::putback(_CharT)’:
/usr/include/c++/4.2/bits/istream.tcc:603: 错误: ‘_M_gcount’在此作用域中尚未声明
/usr/include/c++/4.2/bits/istream.tcc: In member function ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::unget()’:
/usr/include/c++/4.2/bits/istream.tcc:631: 错误: ‘_M_gcount’在此作用域中尚未声明
/usr/include/c++/4.2/bits/istream.tcc: In function ‘std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT2*)’:
/usr/include/c++/4.2/bits/istream.tcc:796: 错误: ‘streamsize’在此作用域中尚未声明
/usr/include/c++/4.2/bits/istream.tcc:796: 错误: expected `;' before ‘__extracted’
/usr/include/c++/4.2/bits/istream.tcc:804: 错误: expected `;' before ‘__num’
/usr/include/c++/4.2/bits/istream.tcc:805: 错误: ‘__num’在此作用域中尚未声明
/usr/include/c++/4.2/bits/istream.tcc:806: 错误: ‘streamsize’不能出现在常量表达式中
/usr/include/c++/4.2/bits/istream.tcc:806: 错误: 模板参数 1 无效
/usr/include/c++/4.2/bits/istream.tcc:814: 错误: ‘__extracted’在此作用域中尚未声明
/usr/include/c++/4.2/bits/istream.tcc:814: 错误: ‘__num’在此作用域中尚未声明
/usr/include/c++/4.2/bits/istream.tcc:834: 错误: ‘__extracted’在此作用域中尚未声明
/usr/include/c++/4.2/bits/istream.tcc: In function ‘std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::basic_string<_CharT, _Traits, _Alloc>&)’:
/usr/include/c++/4.2/bits/istream.tcc:889: 错误: ‘streamsize’没有命名一个类型
/usr/include/c++/4.2/bits/istream.tcc:890: 错误: ‘__w’在此作用域中尚未声明
In file included from /usr/include/c++/4.2/iterator:72,
from /usr/include/qt4/QtCore/qlist.h:52,
from /usr/include/qt4/QtCore/qobject.h:52,
from /usr/include/qt4/QtCore/qiodevice.h:48,
from /usr/include/qt4/QtCore/qdatastream.h:47,
from /usr/include/qt4/QtCore/qstringlist.h:48,
from /usr/include/qt4/QtGui/qcolor.h:49,
from /usr/include/qt4/QtGui/qpixmap.h:48,
from /usr/include/qt4/QtGui/qicon.h:49,
from /usr/include/qt4/QtGui/qabstractbutton.h:47,
from /usr/include/qt4/QtGui/qpushbutton.h:47,
from /usr/include/qt4/QtGui/QPushButton:1,
from main.cpp:2:
/usr/include/c++/4.2/bits/stream_iterator.h: At global scope:
/usr/include/c++/4.2/bits/stream_iterator.h:46: 错误: expected type-specifier before ‘ptrdiff_t’
/usr/include/c++/4.2/bits/stream_iterator.h:46: 错误: expected ‘>’ before ‘ptrdiff_t’
/usr/include/c++/4.2/bits/stream_iterator.h:48: 错误: 模板参数数目不对(不应是 5 个而应是 3 个)
/usr/include/c++/4.2/bits/stl_iterator_base_types.h:106: 错误: 提供给‘template<class _Category, class _Tp, class _Distance> struct std::iterator’
/usr/include/c++/4.2/bits/stream_iterator.h:153: 错误: 模板参数数目不对(不应是 5 个而应是 3 个)
/usr/include/c++/4.2/bits/stl_iterator_base_types.h:106: 错误: 提供给‘template<class _Category, class _Tp, class _Distance> struct std::iterator’
In file included from /usr/include/c++/4.2/list:70,
from /usr/include/qt4/QtCore/qlist.h:53,
from /usr/include/qt4/QtCore/qobject.h:52,
from /usr/include/qt4/QtCore/qiodevice.h:48,
from /usr/include/qt4/QtCore/qdatastream.h:47,
from /usr/include/qt4/QtCore/qstringlist.h:48,
from /usr/include/qt4/QtGui/qcolor.h:49,
from /usr/include/qt4/QtGui/qpixmap.h:48,
from /usr/include/qt4/QtGui/qicon.h:49,
from /usr/include/qt4/QtGui/qabstractbutton.h:47,
from /usr/include/qt4/QtGui/qpushbutton.h:47,
from /usr/include/qt4/QtGui/QPushButton:1,
from main.cpp:2:
/usr/include/c++/4.2/bits/stl_list.h:117: 错误: ‘ptrdiff_t’没有命名一个类型
/usr/include/c++/4.2/bits/stl_list.h:195: 错误: ‘ptrdiff_t’没有命名一个类型
/usr/include/c++/4.2/bits/stl_list.h:428: 错误: ‘ptrdiff_t’没有命名一个类型
In file included from /usr/include/qt4/QtCore/qobject.h:52,
from /usr/include/qt4/QtCore/qiodevice.h:48,
from /usr/include/qt4/QtCore/qdatastream.h:47,
from /usr/include/qt4/QtCore/qstringlist.h:48,
from /usr/include/qt4/QtGui/qcolor.h:49,
from /usr/include/qt4/QtGui/qpixmap.h:48,
from /usr/include/qt4/QtGui/qicon.h:49,
from /usr/include/qt4/QtGui/qabstractbutton.h:47,
from /usr/include/qt4/QtGui/qpushbutton.h:47,
from /usr/include/qt4/QtGui/QPushButton:1,
from main.cpp:2:
/usr/include/qt4/QtCore/qlist.h:156: 错误: ‘ptrdiff_t’没有命名一个类型
/usr/include/qt4/QtCore/qlist.h:203: 错误: ‘ptrdiff_t’没有命名一个类型
/usr/include/qt4/QtCore/qlist.h:279: 错误: ‘ptrdiff_t’没有命名一个类型
In file included from /usr/include/c++/4.2/vector:70,
from /usr/include/qt4/QtCore/qvector.h:54,
from /usr/include/qt4/QtGui/qpolygon.h:47,
from /usr/include/qt4/QtGui/qmatrix.h:47,
from /usr/include/qt4/QtGui/qtransform.h:46,
from /usr/include/qt4/QtGui/qimage.h:47,
from /usr/include/qt4/QtGui/qpixmap.h:51,
from /usr/include/qt4/QtGui/qicon.h:49,
from /usr/include/qt4/QtGui/qabstractbutton.h:47,
from /usr/include/qt4/QtGui/qpushbutton.h:47,
from /usr/include/qt4/QtGui/QPushButton:1,
from main.cpp:2:
/usr/include/c++/4.2/bits/stl_vector.h:182: 错误: ‘ptrdiff_t’没有命名一个类型
In file included from /usr/include/c++/4.2/vector:71,
from /usr/include/qt4/QtCore/qvector.h:54,
from /usr/include/qt4/QtGui/qpolygon.h:47,
from /usr/include/qt4/QtGui/qmatrix.h:47,
from /usr/include/qt4/QtGui/qtransform.h:46,
from /usr/include/qt4/QtGui/qimage.h:47,
from /usr/include/qt4/QtGui/qpixmap.h:51,
from /usr/include/qt4/QtGui/qicon.h:49,
from /usr/include/qt4/QtGui/qabstractbutton.h:47,
from /usr/include/q


页首
 用户资料  
 
2 楼 
 文章标题 :
帖子发表于 : 2008-06-19 10:26 
头像

注册: 2007-09-29 3:09
帖子: 5773
送出感谢: 0 次
接收感谢: 3
依赖全了?


_________________
HUNT Unfortunately No Talent...


页首
 用户资料  
 
3 楼 
 文章标题 :
帖子发表于 : 2008-06-19 11:09 

注册: 2006-06-07 13:55
帖子: 17
送出感谢: 0 次
接收感谢: 0 次
不知道全不全,是按那个wiki弄的
不过刚试了试qt3,是可以的。。。

有用过qt4的吗?


页首
 用户资料  
 
4 楼 
 文章标题 :
帖子发表于 : 2008-06-19 11:10 
头像

注册: 2007-09-29 3:09
帖子: 5773
送出感谢: 0 次
接收感谢: 3
sudo apt-get build-dep qt4-core后再试试...


_________________
HUNT Unfortunately No Talent...


页首
 用户资料  
 
5 楼 
 文章标题 :
帖子发表于 : 2008-06-19 14:11 

注册: 2006-06-07 13:55
帖子: 17
送出感谢: 0 次
接收感谢: 0 次
奇怪了 我在单位电脑装了一下qt4 可以编译通过 家里的电脑却不可以..


页首
 用户资料  
 
6 楼 
 文章标题 : 环境变量的原因
帖子发表于 : 2008-06-20 0:07 

注册: 2008-06-17 16:27
帖子: 2
送出感谢: 0 次
接收感谢: 0 次
环境变量的原因


页首
 用户资料  
 
7 楼 
 文章标题 :
帖子发表于 : 2008-06-20 10:30 

注册: 2006-06-07 13:55
帖子: 17
送出感谢: 0 次
接收感谢: 0 次
晕 谢谢大家 原来是拷代码时#include没有拷贝全 落下了#。。。

败了,不好意思 :oops: :oops:


页首
 用户资料  
 
8 楼 
 文章标题 :
帖子发表于 : 2008-06-21 17:22 
头像

注册: 2006-03-16 10:20
帖子: 171
地址: http://www.adelaidecartridge.com
送出感谢: 0 次
接收感谢: 0 次
qt是个好东西


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 8 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 1 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译