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

Qt Code:
  1. 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
To copy to clipboard, switch view to plain text mode 

The issue is ok

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

Qt Code:
  1. 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
  2.  
  3. "./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.
  4. "./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.
  5. "./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.
  6. "./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.
  7. "./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==".
  8. "./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.
  9. "./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".
  10. "./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.
  11. "./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".
  12. "./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.
  13. "./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".
  14. "./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.
  15. "./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".
  16. "./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.
  17. "./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".
  18. "./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.
  19. "./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".
  20. "./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.
  21. "./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".
  22. "./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.
  23. "./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".
  24. "./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.
  25. "./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".
  26. "./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.
  27. "./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".
  28. "./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.
  29. "./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".
  30. "./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.
  31. "./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".
  32. "./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.
  33. "./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".
To copy to clipboard, switch view to plain text mode 

What do you think of these errors ??

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