PDA

View Full Version : problem to compile exemple qt4 with xlC compiler



poulacou
16th April 2008, 11:45
I have a problem when I want to compil with a compiler other than g++

I explain me :
- I want to compil an exemple from qt-x11-opensource-src-4.3.1
- ./qt-x11-opensource-src-4.3.1/examples/dialogs/standarddialogs
- I do the qmake ...
- then, Makefile


g++ -c -m64 -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I./qt-x11-opensource-src-4.3.1/include/QtCore -I./qt-x11-opensource-src-4.3.1/include/QtGui -I./qt-x11-opensource-src-4.3.1/include -I. -o dialog.o dialog.cpp

The issue is ok :)

If I use the ibm's compiler xlC to power architecture :


xlC -c -q64 -O2 -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I./qt-x11-opensource-src-4.3.1/include/QtCore -I./qt-x11-opensource-src-4.3.1/include/QtGui -I./qt-x11-opensource-src-4.3.1/include -I. -o dialog.o dialog.cpp

"./qt-x11-opensource-src-4.3.1/include/QtCore/qstring.h", line 1083.15: 1540-0040 (S) The text "bool" is unexpected. "visibility" may be undeclared or ambiguous.
"./qt-x11-opensource-src-4.3.1/include/QtGui/qpolygon.h", line 91.21: 1540-0040 (S) The text "operator<<" is unexpected. "visibility" may be undeclared or ambiguous.
"./qt-x11-opensource-src-4.3.1/include/QtGui/qpolygon.h", line 142.21: 1540-0040 (S) The text "operator<<" is unexpected. "visibility" may be undeclared or ambiguous.
"./qt-x11-opensource-src-4.3.1/include/QtGui/qtextformat.h", line 115.26: 1540-0040 (S) The text "&" is unexpected. "visibility" may be undeclared or ambiguous.
"./qt-x11-opensource-src-4.3.1/include/QtCore/qstring.h", line 1085.15: 1540-0218 (S) The call does not match any parameter list for "operator==".
"./qt-x11-opensource-src-4.3.1/include/QtCore/qglobal.h", line 1491.13: 1540-1283 (I) "operator==(QBool, bool)" is not a viable candidate.
"./qt-x11-opensource-src-4.3.1/include/QtCore/qstring.h", line 1085.12: 1540-0256 (I) A parameter of type "QBool" cannot be initialized with an expression of type "const QStringRef".
"./qt-x11-opensource-src-4.3.1/include/QtCore/qglobal.h", line 1492.13: 1540-1283 (I) "operator==(bool, QBool)" is not a viable candidate.
"./qt-x11-opensource-src-4.3.1/include/QtCore/qstring.h", line 1085.12: 1540-0256 (I) A parameter of type "bool" cannot be initialized with an expression of type "const QStringRef".
"./qt-x11-opensource-src-4.3.1/include/QtCore/qglobal.h", line 1493.13: 1540-1283 (I) "operator==(QBool, QBool)" is not a viable candidate.
"./qt-x11-opensource-src-4.3.1/include/QtCore/qstring.h", line 1085.12: 1540-0256 (I) A parameter of type "QBool" cannot be initialized with an expression of type "const QStringRef".
"./qt-x11-opensource-src-4.3.1/include/QtCore/qchar.h", line 352.13: 1540-1283 (I) "operator==(QChar, QChar)" is not a viable candidate.
"./qt-x11-opensource-src-4.3.1/include/QtCore/qstring.h", line 1085.12: 1540-0256 (I) A parameter of type "QChar" cannot be initialized with an expression of type "const QStringRef".
"./qt-x11-opensource-src-4.3.1/include/QtCore/qbytearray.h", line 453.13: 1540-1283 (I) "operator==(const QByteArray &, const QByteArray &)" is not a viable candidate.
"./qt-x11-opensource-src-4.3.1/include/QtCore/qstring.h", line 1085.12: 1540-0256 (I) A parameter of type "const QByteArray &" cannot be initialized with an expression of type "const QStringRef".
"./qt-x11-opensource-src-4.3.1/include/QtCore/qbytearray.h", line 455.13: 1540-1283 (I) "operator==(const QByteArray &, const char *)" is not a viable candidate.
"./qt-x11-opensource-src-4.3.1/include/QtCore/qstring.h", line 1085.12: 1540-0256 (I) A parameter of type "const QByteArray &" cannot be initialized with an expression of type "const QStringRef".
"./qt-x11-opensource-src-4.3.1/include/QtCore/qbytearray.h", line 457.13: 1540-1283 (I) "operator==(const char *, const QByteArray &)" is not a viable candidate.
"./qt-x11-opensource-src-4.3.1/include/QtCore/qstring.h", line 1085.12: 1540-0256 (I) A parameter of type "const char *" cannot be initialized with an expression of type "const QStringRef".
"./qt-x11-opensource-src-4.3.1/include/QtCore/qstring.h", line 833.13: 1540-1283 (I) "operator==(QString::Null, QString::Null)" is not a viable candidate.
"./qt-x11-opensource-src-4.3.1/include/QtCore/qstring.h", line 1085.12: 1540-0256 (I) A parameter of type "QString::Null" cannot be initialized with an expression of type "const QStringRef".
"./qt-x11-opensource-src-4.3.1/include/QtCore/qstring.h", line 834.13: 1540-1283 (I) "operator==(QString::Null, const QString &)" is not a viable candidate.
"./qt-x11-opensource-src-4.3.1/include/QtCore/qstring.h", line 1085.12: 1540-0256 (I) A parameter of type "QString::Null" cannot be initialized with an expression of type "const QStringRef".
"./qt-x11-opensource-src-4.3.1/include/QtCore/qstring.h", line 835.13: 1540-1283 (I) "operator==(const QString &, QString::Null)" is not a viable candidate.
"./qt-x11-opensource-src-4.3.1/include/QtCore/qstring.h", line 1085.12: 1540-0256 (I) A parameter of type "const QString &" cannot be initialized with an expression of type "const QStringRef".
"./qt-x11-opensource-src-4.3.1/include/QtCore/qstring.h", line 861.32: 1540-1283 (I) "operator==(const char *, const QString &)" is not a viable candidate.
"./qt-x11-opensource-src-4.3.1/include/QtCore/qstring.h", line 1085.12: 1540-0256 (I) A parameter of type "const char *" cannot be initialized with an expression of type "const QStringRef".
"./qt-x11-opensource-src-4.3.1/include/QtCore/qstring.h", line 874.32: 1540-1283 (I) "operator==(const char *, const QLatin1String &)" is not a viable candidate.
"./qt-x11-opensource-src-4.3.1/include/QtCore/qstring.h", line 1085.12: 1540-0256 (I) A parameter of type "const char *" cannot be initialized with an expression of type "const QStringRef".
"./qt-x11-opensource-src-4.3.1/include/QtCore/qstring.h", line 887.13: 1540-1283 (I) "operator==(const QLatin1String &, const QLatin1String &)" is not a viable candidate.
"./qt-x11-opensource-src-4.3.1/include/QtCore/qstring.h", line 1085.12: 1540-0256 (I) A parameter of type "const QLatin1String &" cannot be initialized with an expression of type "const QStringRef".


What do you think of these errors ??

Usually, I haven't got any problems with this compiler (qt3, X11, ...)

poulacou
16th April 2008, 14:59
platform linux ppc64