- Κώδικας: Επιλογή όλων
************************************************
*** Now I will build program Rocinante ***
************************************************
make clean
make[1]: Entering directory `/home/anagno/Documents/roci-local'
#rm -f rocinante
rm -f obj/*
rm -f bin/*
rm -f `find . -name *~`
rm -f src/Makefile
if [ -e src/.qmake.internal.cache ]; then rm -f src/.qmake.internal.cache; fi
make[1]: Leaving directory `/home/anagno/Documents/roci-local'
make[1]: Entering directory `/home/anagno/Documents/roci-local/src'
g++ -c -m64 -pipe -Wall -pedantic -ansi -D_REENTRANT -Wall -W -DQT_WEBKIT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -Igamalib -I../obj -o ../obj/about.o about.cpp
In file included from /usr/include/qt4/QtCore/qnamespace.h:45:0,
from /usr/include/qt4/QtCore/qobjectdefs.h:45,
from /usr/include/qt4/QtGui/qwindowdefs.h:45,
from /usr/include/qt4/QtGui/qwidget.h:45,
from /usr/include/qt4/QtGui/qdialog.h:45,
from about.h:30,
from about.cpp:29:
/usr/include/qt4/QtCore/qglobal.h:852:1: warning: ISO C++ 1998 does not support ‘long long’ [-Wlong-long]
/usr/include/qt4/QtCore/qglobal.h:853:1: warning: ISO C++ 1998 does not support ‘long long’ [-Wlong-long]
In file included from about.cpp:29:0:
about.h:44:38: error: ‘WFlags’ has not been declared
about.cpp:54:39: error: ‘WFlags’ has not been declared
about.cpp: In constructor ‘Rocinante::AboutDialog::AboutDialog(QWidget*, const char*, bool, int)’:
about.cpp:55:40: error: no matching function for call to ‘QDialog::QDialog(QWidget*&, const char*&, bool&, int&)’
about.cpp:55:40: note: candidates are:
/usr/include/qt4/QtGui/qdialog.h:124:5: note: QDialog::QDialog(const QDialog&)
/usr/include/qt4/QtGui/qdialog.h:124:5: note: candidate expects 1 argument, 4 provided
/usr/include/qt4/QtGui/qdialog.h:108:5: note: QDialog::QDialog(QDialogPrivate&, QWidget*, Qt::WindowFlags)
/usr/include/qt4/QtGui/qdialog.h:108:5: note: candidate expects 3 arguments, 4 provided
/usr/include/qt4/QtGui/qdialog.h:65:14: note: QDialog::QDialog(QWidget*, Qt::WindowFlags)
/usr/include/qt4/QtGui/qdialog.h:65:14: note: candidate expects 2 arguments, 4 provided
about.cpp:57:63: error: ‘setCaption’ was not declared in this scope
about.cpp:59:51: error: no matching function for call to ‘QVBoxLayout::QVBoxLayout(Rocinante::AboutDialog* const, int)’
about.cpp:59:51: note: candidates are:
/usr/include/qt4/QtGui/qboxlayout.h:166:5: note: QVBoxLayout::QVBoxLayout(const QVBoxLayout&)
/usr/include/qt4/QtGui/qboxlayout.h:166:5: note: candidate expects 1 argument, 2 provided
/usr/include/qt4/QtGui/qboxlayout.h:154:14: note: QVBoxLayout::QVBoxLayout(QWidget*)
/usr/include/qt4/QtGui/qboxlayout.h:154:14: note: candidate expects 1 argument, 2 provided
/usr/include/qt4/QtGui/qboxlayout.h:153:5: note: QVBoxLayout::QVBoxLayout()
/usr/include/qt4/QtGui/qboxlayout.h:153:5: note: candidate expects 0 arguments, 2 provided
about.cpp:83:27: error: ‘WordBreak’ is not a member of ‘QLabel’
about.cpp:83:47: error: ‘AlignAuto’ is not a member of ‘QLabel’
about.cpp:84:27: error: ‘AlignVCenter’ is not a member of ‘QLabel’
about.cpp:84:50: error: ‘AlignLeft’ is not a member of ‘QLabel’
about.cpp: In function ‘void Rocinante::about_rocinante_splash()’:
about.cpp:112:37: error: invalid use of incomplete type ‘struct QDesktopWidget’
/usr/include/qt4/QtGui/qapplication.h:73:7: error: forward declaration of ‘struct QDesktopWidget’
about.cpp:118:42: error: invalid use of incomplete type ‘struct QDesktopWidget’
/usr/include/qt4/QtGui/qapplication.h:73:7: error: forward declaration of ‘struct QDesktopWidget’
about.cpp:119:43: error: invalid use of incomplete type ‘struct QDesktopWidget’
/usr/include/qt4/QtGui/qapplication.h:73:7: error: forward declaration of ‘struct QDesktopWidget’
about.cpp:121:39: error: ‘WDestructiveClose’ is not a member of ‘Qt’
about.cpp:122:26: error: ‘WStyle_Customize’ is not a member of ‘Qt’
about.cpp:122:49: error: ‘WStyle_NoBorder’ is not a member of ‘Qt’
about.cpp:123:26: error: ‘WX11BypassWM’ is not a member of ‘Qt’
about.cpp:131:13: error: ‘class QLabel’ has no member named ‘setCaption’
about.cpp:138:28: error: no matching function for call to ‘QLabel::repaint(bool)’
about.cpp:138:28: note: candidates are:
/usr/include/qt4/QtGui/qwidget.h:470:10: note: void QWidget::repaint()
/usr/include/qt4/QtGui/qwidget.h:470:10: note: candidate expects 0 arguments, 1 provided
/usr/include/qt4/QtGui/qwidget.h:477:10: note: void QWidget::repaint(int, int, int, int)
/usr/include/qt4/QtGui/qwidget.h:477:10: note: candidate expects 4 arguments, 1 provided
/usr/include/qt4/QtGui/qwidget.h:478:10: note: void QWidget::repaint(const QRect&)
/usr/include/qt4/QtGui/qwidget.h:478:10: note: no known conversion for argument 1 from ‘bool’ to ‘const QRect&’
/usr/include/qt4/QtGui/qwidget.h:479:10: note: void QWidget::repaint(const QRegion&)
/usr/include/qt4/QtGui/qwidget.h:479:10: note: no known conversion for argument 1 from ‘bool’ to ‘const QRegion&’
about.cpp:140:5: error: ‘flushX’ is not a member of ‘QApplication’
about.cpp: In function ‘void Rocinante::about_gama()’:
about.cpp:146:37: error: no matching function for call to ‘QMessageBox::QMessageBox(int, const char [11])’
about.cpp:146:37: note: candidates are:
/usr/include/qt4/QtGui/qmessagebox.h:338:5: note: QMessageBox::QMessageBox(const QMessageBox&)
/usr/include/qt4/QtGui/qmessagebox.h:338:5: note: candidate expects 1 argument, 2 provided
/usr/include/qt4/QtGui/qmessagebox.h:212:5: note: QMessageBox::QMessageBox(const QString&, const QString&, QMessageBox::Icon, int, int, int, QWidget*, Qt::WindowFlags)
/usr/include/qt4/QtGui/qmessagebox.h:212:5: note: candidate expects 8 arguments, 2 provided
/usr/include/qt4/QtGui/qmessagebox.h:138:5: note: QMessageBox::QMessageBox(QMessageBox::Icon, const QString&, const QString&, QMessageBox::StandardButtons, QWidget*, Qt::WindowFlags)
/usr/include/qt4/QtGui/qmessagebox.h:138:5: note: candidate expects 6 arguments, 2 provided
/usr/include/qt4/QtGui/qmessagebox.h:137:14: note: QMessageBox::QMessageBox(QWidget*)
/usr/include/qt4/QtGui/qmessagebox.h:137:14: note: candidate expects 1 argument, 2 provided
about.cpp:148:8: error: ‘class QMessageBox’ has no member named ‘setCaption’
about.cpp:149:71: error: no matching function for call to ‘QApplication::translate(const char [10], const QString&)’
about.cpp:149:71: note: candidates are:
/usr/include/qt4/QtCore/qcoreapplication.h:140:20: note: static QString QCoreApplication::translate(const char*, const char*, const char*, QCoreApplication::Encoding)
/usr/include/qt4/QtCore/qcoreapplication.h:140:20: note: no known conversion for argument 2 from ‘const QString’ to ‘const char*’
/usr/include/qt4/QtCore/qcoreapplication.h:144:20: note: static QString QCoreApplication::translate(const char*, const char*, const char*, QCoreApplication::Encoding, int)
/usr/include/qt4/QtCore/qcoreapplication.h:144:20: note: candidate expects 5 arguments, 2 provided
about.cpp:152:43: error: no matching function for call to ‘QApplication::translate(const char [10], const QString&)’
about.cpp:152:43: note: candidates are:
/usr/include/qt4/QtCore/qcoreapplication.h:140:20: note: static QString QCoreApplication::translate(const char*, const char*, const char*, QCoreApplication::Encoding)
/usr/include/qt4/QtCore/qcoreapplication.h:140:20: note: no known conversion for argument 2 from ‘const QString’ to ‘const char*’
/usr/include/qt4/QtCore/qcoreapplication.h:144:20: note: static QString QCoreApplication::translate(const char*, const char*, const char*, QCoreApplication::Encoding, int)
/usr/include/qt4/QtCore/qcoreapplication.h:144:20: note: candidate expects 5 arguments, 2 provided
make[1]: *** [../obj/about.o] Error 1
make[1]: Leaving directory `/home/anagno/Documents/roci-local/src'
make: *** [build] Error 2
Τι πρέπει να κάνω για να το διορθώσω ???
(υπόψιν είμαι ψιλό άσχετος με τon προγραμματισμό...)
Ευχαριστώ πολύ
