RT。环境搭好了。按照
http://www.cnblogs.com/lansh/archive/2008/02/14/958808.html上的小程序进行测试。
编译就出现一长串
错误:
D:\MinGW\include\c++\3.4.5/limits:1052:4: error: a call to a constructor cannot appear in a constant-expression
In file included from D:\MinGW\include\c++\3.4.5/bits/stl_tree.h:70:0,
from D:\MinGW\include\c++\3.4.5/map:66,
from d:/Qt/4.8.0/include/QtCore/../../src/corelib/tools/qmap.h:50,
from d:/Qt/4.8.0/include/QtCore/qmap.h:1,
from d:/Qt/4.8.0/include/QtCore/../../src/corelib/kernel/qvariant.h:49,
from d:/Qt/4.8.0/include/QtCore/qvariant.h:1,
from d:/Qt/4.8.0/include/QtCore/QVariant:1,
from ui_qtest.h:13,
from qtest.h:5,
from main.cpp:1:
D:\MinGW\include\c++\3.4.5/bits/cpp_type_traits.h:334:12: error: expected identifier before '__is_pod'
D:\MinGW\include\c++\3.4.5/bits/cpp_type_traits.h:334:12: error: expected unqualified-id before '__is_pod'
还有很多。接下来大
部分都是stl_tree.h 上 request for member '_M_key_compare' in '的错误。:
D:\MinGW\include\c++\3.4.5/bits/stl_tree.h:575:24: error: request for member '_M_key_compare' in '((const std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>*)this)->std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_impl', which is of non-class type 'const int'
D:\MinGW\include\c++\3.4.5/bits/stl_tree.h: In member function 'bool std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::empty() const':
环境我也尝试重新搭过两次了。用的是eclipse+MinGW+QT。
QT4.8。
MinGw用的是最新的。
eclipse插件是用的1.6。
这是环境搭建哪个部分的
问题呢?谢谢。