-pedantic breaks qt-dbus on OSX

Benjamin Reed rangerrick at gmail.com
Mon Jun 19 18:22:26 BST 2006


looks like Qt/Mac 4.1.3's headers aren't pedantic enough  :P

---(snip!)---
$ make
Building CXX object
qt-dbus/selftests/headertest/CMakeFiles/tst_headertest.dir/tst_headertest.o
/opt/qt4/include/QtCore/qglobal.h:569: error: ISO C++ does not support
'long long'/opt/qt4/include/QtCore/qglobal.h:569: error: ISO C++ does
not support 'long long'
/opt/qt4/include/QtCore/qglobal.h:570: error: ISO C++ does not support
'long long'

/opt/qt4/include/QtCore/qglobal.h:570: error: ISO C++ does not support
'long long'
/opt/qt4/include/QtCore/qglobal.h:1464: error: redefinition of 'class
QTypeInfo<long int>'
/opt/qt4/include/QtCore/qglobal.h:1462: error: previous definition of
'class QTypeInfo<long int>'
/opt/qt4/include/QtCore/qglobal.h:1465: error: redefinition of 'class
QTypeInfo<ulong>'
/opt/qt4/include/QtCore/qglobal.h:1463: error: previous definition of
'class QTypeInfo<ulong>'
/opt/qt4/include/QtCore/qglobal.h:1464: error: redefinition of 'class
QTypeInfo<long int>'
/opt/qt4/include/QtCore/qglobal.h:1462: error: previous definition of
'class QTypeInfo<long int>'
/opt/qt4/include/QtCore/qglobal.h:1465: error: redefinition of 'class
QTypeInfo<ulong>'
/opt/qt4/include/QtCore/qglobal.h:1463: error: previous definition of
'class QTypeInfo<ulong>'
/opt/qt4/include/QtCore/qstring.h:113: error: 'QString
QString::arg(long int, int, int, const QChar&) const' and 'QString
QString::arg(qlonglong, int, int, const QChar&) const' cannot be
overloaded
/opt/qt4/include/QtCore/qstring.h:114: error: 'QString
QString::arg(ulong, int, int, const QChar&) const' and 'QString
QString::arg(qulonglong, int, int, const QChar&) const' cannot be
overloaded
/opt/qt4/include/QtCore/qstring.h:277: error: 'QString&
QString::setNum(qlonglong, int)' and 'QString& QString::setNum(long
int, int)' cannot be overloaded
/opt/qt4/include/QtCore/qstring.h:278: error: 'QString&
QString::setNum(qulonglong, int)' and 'QString& QString::setNum(ulong,
int)' cannot be overloaded
/opt/qt4/include/QtCore/qstring.h:286: error: 'static QString
QString::number(qlonglong, int)' and 'static QString
QString::number(long int, int)' cannot be overloaded
/opt/qt4/include/QtCore/qstring.h:287: error: 'static QString
QString::number(qulonglong, int)' and 'static QString
QString::number(ulong, int)' cannot be overloaded
/opt/qt4/include/QtCore/qstring.h:113: error: 'QString
QString::arg(long int, int, int, const QChar&) const' and 'QString
QString::arg(qlonglong, int, int, const QChar&) const' cannot be
overloaded
/opt/qt4/include/QtCore/qstring.h:114: error: 'QString
QString::arg(ulong, int, int, const QChar&) const' and 'QString
QString::arg(qulonglong, int, int, const QChar&) const' cannot be
overloaded
/opt/qt4/include/QtCore/qstring.h:277: error: 'QString&
QString::setNum(qlonglong, int)' and 'QString& QString::setNum(long
int, int)' cannot be overloaded
/opt/qt4/include/QtCore/qstring.h:278: error: 'QString&
QString::setNum(qulonglong, int)' and 'QString& QString::setNum(ulong,
int)' cannot be overloaded
/opt/qt4/include/QtCore/qstring.h:286: error: 'static QString
QString::number(qlonglong, int)' and 'static QString
QString::number(long int, int)' cannot be overloaded
/opt/qt4/include/QtCore/qstring.h:287: error: 'static QString
QString::number(qulonglong, int)' and 'static QString
QString::number(ulong, int)' cannot be overloaded
lipo: can't figure out the architecture type of: /var/tmp//ccOqxerr.out
make[2]: *** [qt-dbus/selftests/headertest/CMakeFiles/tst_headertest.dir/tst_headertest.o]
Error 1
make[1]: *** [qt-dbus/selftests/headertest/CMakeFiles/tst_headertest.dir/all]
Error 2
make: *** [all] Error 2
---(snip!)---




More information about the kde-core-devel mailing list