- 论坛徽章:
- 0
|
本帖最后由 view1073 于 2010-06-06 15:35 编辑
我在x86下在编译qtopia时出现如下错误,arm下也类似:- from /work/tmp/qtopia-opensource-src-4.3.4-snapshot-20081021/src/server/core_server/applicationlauncher.h:23,
- from /work/tmp/qtopia-opensource-src-4.3.4-snapshot-20081021/src/server/core_server/applicationlauncher.cpp:20:
- /work/tmp/build/qtopiacore/target/include/QtCore/../../../../../qtopia-opensource-src-4.3.4-snapshot-20081021/qtopiacore/qt/src/corelib/tools/qbytearray.h:151: warning: type qualifiers ignored on function return type
- /work/tmp/build/qtopiacore/target/include/QtCore/../../../../../qtopia-opensource-src-4.3.4-snapshot-20081021/qtopiacore/qt/src/corelib/tools/qbytearray.h:152: warning: type qualifiers ignored on function return type
- /work/tmp/build/qtopiacore/target/include/QtCore/../../../../../qtopia-opensource-src-4.3.4-snapshot-20081021/qtopiacore/qt/src/corelib/tools/qbytearray.h:154: warning: type qualifiers ignored on function return type
- /work/tmp/build/qtopiacore/target/include/QtCore/../../../../../qtopia-opensource-src-4.3.4-snapshot-20081021/qtopiacore/qt/src/corelib/tools/qbytearray.h:353: warning: type qualifiers ignored on function return type
- /work/tmp/build/qtopiacore/target/include/QtCore/../../../../../qtopia-opensource-src-4.3.4-snapshot-20081021/qtopiacore/qt/src/corelib/tools/qbytearray.h:355: warning: type qualifiers ignored on function return type
- /work/tmp/build/qtopiacore/target/include/QtCore/../../../../../qtopia-opensource-src-4.3.4-snapshot-20081021/qtopiacore/qt/src/corelib/tools/qbytearray.h:357: warning: type qualifiers ignored on function return type
- /work/tmp/build/qtopiacore/target/include/QtCore/../../../../../qtopia-opensource-src-4.3.4-snapshot-20081021/qtopiacore/qt/src/corelib/tools/qbytearray.h:398: warning: type qualifiers ignored on function return type
- In file included from /work/tmp/build/qtopiacore/target/include/QtCore/qstring.h:1,
- from /work/tmp/build/qtopiacore/target/include/QtCore/../../../../../qtopia-opensource-src-4.3.4-snapshot-20081021/qtopiacore/qt/src/corelib/kernel/qobject.h:50,
- from /work/tmp/build/qtopiacore/target/include/QtCore/qobject.h:1,
- from /work/tmp/build/qtopiacore/target/include/QtCore/QObject:1,
- from /work/tmp/qtopia-opensource-src-4.3.4-snapshot-20081021/src/server/core_server/applicationlauncher.h:23,
- from /work/tmp/qtopia-opensource-src-4.3.4-snapshot-20081021/src/server/core_server/applicationlauncher.cpp:20:
- /work/tmp/build/qtopiacore/target/include/QtCore/../../../../../qtopia-opensource-src-4.3.4-snapshot-20081021/qtopiacore/qt/src/corelib/tools/qstring.h:794: warning: type qualifiers ignored on function return type
- /work/tmp/build/qtopiacore/target/include/QtCore/../../../../../qtopia-opensource-src-4.3.4-snapshot-20081021/qtopiacore/qt/src/corelib/tools/qstring.h:795: warning: type qualifiers ignored on function return type
- /work/tmp/build/qtopiacore/target/include/QtCore/../../../../../qtopia-opensource-src-4.3.4-snapshot-20081021/qtopiacore/qt/src/corelib/tools/qstring.h:796: warning: type qualifiers ignored on function return type
- In file included from /usr/include/c++/4.4/bits/locale_classes.h:809,
- from /usr/include/c++/4.4/bits/ios_base.h:43,
- from /usr/include/c++/4.4/ios:43,
- from /usr/include/c++/4.4/istream:40,
- from /usr/include/c++/4.4/fstream:40,
- from /work/tmp/qtopia-opensource-src-4.3.4-snapshot-20081021/src/server/core_server/applicationlauncher.cpp:49:
- /usr/include/c++/4.4/bits/locale_classes.tcc: In function ‘bool std::has_facet(const std::locale&)’:
- /usr/include/c++/4.4/bits/locale_classes.tcc:97: error: ‘dynamic_cast_not_allowed’ was not declared in this scope
- /usr/include/c++/4.4/bits/locale_classes.tcc:97: error: expected primary-expression before ‘const’
- /usr/include/c++/4.4/bits/locale_classes.tcc:97: error: expected ‘)’ before ‘const’
- /usr/include/c++/4.4/bits/locale_classes.tcc: In function ‘const _Facet& std::use_facet(const std::locale&)’:
- /usr/include/c++/4.4/bits/locale_classes.tcc:112: error: ‘dynamic_cast_not_allowed’ was not declared in this scope
- /usr/include/c++/4.4/bits/locale_classes.tcc:112: error: expected primary-expression before ‘const’
- /usr/include/c++/4.4/bits/locale_classes.tcc:112: error: expected ‘;’ before ‘const’
- /usr/include/c++/4.4/bits/locale_classes.tcc:112: error: expected unqualified-id before ‘>’ token
- /usr/include/c++/4.4/bits/locale_classes.tcc:112: error: expected initializer before ‘>’ token
-
复制代码 不知为何?
locale_classes.tcc内的代码如下:- template<typename _Facet>
- bool
- has_facet(const locale& __loc) throw()
- {
- const size_t __i = _Facet::id._M_id();
- const locale::facet** __facets = __loc._M_impl->_M_facets;
- return (__i < __loc._M_impl->_M_facets_size
- #ifdef __GXX_RTTI
- && dynamic_cast<const _Facet*>(__facets[__i]));
- #else
- && static_cast<const _Facet*>(__facets[__i]));
- #endif
- }
- template<typename _Facet>
- const _Facet&
- use_facet(const locale& __loc)
- {
- const size_t __i = _Facet::id._M_id();
- const locale::facet** __facets = __loc._M_impl->_M_facets;
- if (__i >= __loc._M_impl->_M_facets_size || !__facets[__i])
- __throw_bad_cast();
- #ifdef __GXX_RTTI
- return dynamic_cast<const _Facet&>(*__facets[__i]);
- #else
- return static_cast<const _Facet&>(*__facets[__i]);
- #endif
- }
复制代码 |
|