• 9688阅读
  • 1回复

新手求助,QT编译执行问题怎么解决? [复制链接]

上一主题 下一主题
离线zhangjian
 
只看楼主 倒序阅读 楼主  发表于: 2009-02-17
编译器: Default compiler
Building Makefile: "D:\C\Makefile.win"
执行  make...
make.exe -f "D:\C\Makefile.win" all
g++.exe -c main.cpp -o main.o -I"lib/gcc/mingw32/3.4.2/include"  -I"include/c++/3.4.2/backward"  -I"include/c++/3.4.2/mingw32"  -I"include/c++/3.4.2"  -I"include"  -I"D:/Qt/4.4.3/include"  -I"D:/Qt/4.4.3/include"  -I"D:/Qt/4.4.3/include/Qt"  -I"D:/Qt/4.4.3/include/Qt3Support"  -I"D:/Qt/4.4.3/include/QtAssistant"  -I"D:/Qt/4.4.3/include/QtCore"  -I"D:/Qt/4.4.3/include/QtDesigner"  -I"D:/Qt/4.4.3/include/QtGui"  -I"D:/Qt/4.4.3/include/QtDBus"  -I"D:/Qt/4.4.3/include/QtNetwork"  -I"D:/Qt/4.4.3/include/QtSvg"  -I"D:/Qt/4.4.3/include/QtOpenGL"  -I"D:/Qt/4.4.3/include/QtSql"  -I"D:/Qt/4.4.3/include/QtTest"  -I"D:/Qt/4.4.3/include/QtUiTools"  -I"D:/Qt/4.4.3/include/QtXml" 

In file included from D:/Qt/4.4.3/include/Qt3Support/q3dns.h:1,
                from D:/Qt/4.4.3/include/Qt3Support/Qt3Support:14,
                from main.cpp:1:
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3dns.h:93: error: `Q_UINT16' has not been declared
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3dns.h:94: error: ISO C++ forbids declaration of `p' with no type
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3dns.h:96: error: `Q_UINT16' does not name a type
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3dns.h:103: error: `Q_UINT16' has not been declared
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3dns.h:103: error: `Q_UINT16' has not been declared
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3dns.h:103: error: `Q_UINT16' has not been declared

D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3dns.h:104: error: ISO C++ forbids declaration of `p' with no type
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3dns.h:104: error: ISO C++ forbids declaration of `w' with no type
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3dns.h:104: error: ISO C++ forbids declaration of `po' with no type
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3dns.h:106: error: `Q_UINT16' does not name a type
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3dns.h:107: error: `Q_UINT16' does not name a type
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3dns.h:108: error: `Q_UINT16' does not name a type
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3dns.h: In constructor `Q3Dns::MailServer::MailServer(const QString&, int)':
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3dns.h:94: error: class `Q3Dns::MailServer' does not have any field named `priority'
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3dns.h: In constructor `Q3Dns::Server::Server(const QString&, int, int, int)':
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3dns.h:104: error: class `Q3Dns::Server' does not have any field named `priority'
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3dns.h:104: error: class `Q3Dns::Server' does not have any field named `weight'

D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3dns.h:104: error: class `Q3Dns::Server' does not have any field named `port'

In file included from D:/Qt/4.4.3/include/Qt3Support/q3ftp.h:1,
                from D:/Qt/4.4.3/include/Qt3Support/Qt3Support:15,
                from main.cpp:1:
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3ftp.h: At global scope:

D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3ftp.h:100: error: `Q_UINT16' has not been declared
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3ftp.h:100: error: ISO C++ forbids declaration of `port' with no type
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3ftp.h:115: error: `Q_ULONG' does not name a type
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3ftp.h:116: error: `Q_LONG' does not name a type

In file included from D:/Qt/4.4.3/include/Qt3Support/q3http.h:1,
                from D:/Qt/4.4.3/include/Qt3Support/Qt3Support:16,
                from main.cpp:1:
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3http.h:170: error: `Q_UINT16' has not been declared
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3http.h:170: error: ISO C++ forbids declaration of `port' with no type
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3http.h:187: error: `Q_UINT16' has not been declared
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3http.h:187: error: ISO C++ forbids declaration of `port' with no type
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3http.h:198: error: `Q_ULONG' does not name a type
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3http.h:199: error: `Q_LONG' does not name a type

In file included from D:/Qt/4.4.3/include/Qt3Support/q3socketdevice.h:1,
                from D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3serversocket.h:43,
                from D:/Qt/4.4.3/include/Qt3Support/q3serversocket.h:1,
                from D:/Qt/4.4.3/include/Qt3Support/Qt3Support:20,
                from main.cpp:1:
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3socketdevice.h:79: error: `Offset' does not name a type
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3socketdevice.h:80: error: `Offset' does not name a type
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3socketdevice.h:81: error: expected `;' before '(' token
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3socketdevice.h:95: error: `Q_UINT16' has not been declared
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3socketdevice.h:95: error: ISO C++ forbids declaration of `parameter' with no type
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3socketdevice.h:97: error: `Q_UINT16' has not been declared
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3socketdevice.h:97: error: ISO C++ forbids declaration of `parameter' with no type
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3socketdevice.h:102: error: `Q_LONG' does not name a type
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3socketdevice.h:103: error: `Q_LONG' does not name a type
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3socketdevice.h:105: error: `Q_LONG' does not name a type
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3socketdevice.h:107: error: `Q_ULONG' has not been declared
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3socketdevice.h:108: error: ISO C++ forbids declaration of `maxlen' with no type

D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3socketdevice.h:110: error: `Q_UINT16' does not name a type
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3socketdevice.h:111: error: `Q_UINT16' does not name a type
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3socketdevice.h:140: error: `Q_UINT16' does not name a type
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3socketdevice.h:142: error: `Q_UINT16' does not name a type
In file included from D:/Qt/4.4.3/include/Qt3Support/q3serversocket.h:1,
                from D:/Qt/4.4.3/include/Qt3Support/Qt3Support:20,
                from main.cpp:1:
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3serversocket.h:57: error: expected `)' before "port"
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3serversocket.h:59: error: `Q_UINT16' has not been declared
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3serversocket.h:60: error: ISO C++ forbids declaration of `port' with no type
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3serversocket.h:66: error: `Q_UINT16' does not name a type
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3serversocket.h:83: error: `Q_UINT16' has not been declared
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3serversocket.h:83: error: ISO C++ forbids declaration of `port' with no type

In file included from D:/Qt/4.4.3/include/Qt3Support/q3socket.h:1,
                from D:/Qt/4.4.3/include/Qt3Support/Qt3Support:21,
                from main.cpp:1:
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3socket.h:79: error: `Q_UINT16' has not been declared

D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3socket.h:79: error: ISO C++ forbids declaration of `port' with no type
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3socket.h:88: error: `Offset' does not name a type
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3socket.h:89: error: `Offset' does not name a type
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3socket.h:90: error: expected `;' before '(' token
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3socket.h:94: error: `Q_ULONG' does not name a type
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3socket.h:95: error: `Q_ULONG' does not name a type
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3socket.h:105: error: `Q_UINT16' does not name a type
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3socket.h:106: error: `Q_UINT16' does not name a type
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3socket.h:110: error: variable or field `setReadBufferSize' declared void
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3socket.h:110: error: expected `;' before '(' token
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3socket.h:111: error: `Q_ULONG' does not name a type
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/network/q3socket.h:139: error: expected `;' before '(' token

In file included from D:/Qt/4.4.3/include/Qt3Support/q3boxlayout.h:1,
                from D:/Qt/4.4.3/include/Qt3Support/Qt3Support:26,
                from main.cpp:1:
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/other/q3boxlayout.h: In constructor `Q3BoxLayout::Q3BoxLayout(QWidget*, QBoxLayout::Direction, int, int, const char*)':
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/other/q3boxlayout.h:57: error: no matching function for call to `QBoxLayout::QBoxLayout(QWidget*&, QBoxLayout::Direction&, int&, int&, const char*&)'
D:/Qt/4.4.3/include/QtGui/../../src/gui/kernel/qboxlayout.h:120: note: candidates are: QBoxLayout::QBoxLayout(const QBoxLayout&)
D:/Qt/4.4.3/include/QtGui/../../src/gui/kernel/qboxlayout.h:64: note:                QBoxLayout::QBoxLayout(QBoxLayout::Direction, QWidget*)
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/other/q3boxlayout.h: In constructor `Q3BoxLayout::Q3BoxLayout(QLayout*, QBoxLayout::Direction, int, const char*)':

D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/other/q3boxlayout.h:61: error: no matching function for call to `QBoxLayout::QBoxLayout(QLayout*&, QBoxLayout::Direction&, int&, const char*&)'
D:/Qt/4.4.3/include/QtGui/../../src/gui/kernel/qboxlayout.h:120: note: candidates are: QBoxLayout::QBoxLayout(const QBoxLayout&)
D:/Qt/4.4.3/include/QtGui/../../src/gui/kernel/qboxlayout.h:64: note:                QBoxLayout::QBoxLayout(QBoxLayout::Direction, QWidget*)
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/other/q3boxlayout.h: In constructor `Q3BoxLayout::Q3BoxLayout(QBoxLayout::Direction, int, const char*)':
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/other/q3boxlayout.h:64: error: no matching function for call to `QBoxLayout::QBoxLayout(QBoxLayout::Direction&, int&, const char*&)'
D:/Qt/4.4.3/include/QtGui/../../src/gui/kernel/qboxlayout.h:120: note: candidates are: QBoxLayout::QBoxLayout(const QBoxLayout&)

D:/Qt/4.4.3/include/QtGui/../../src/gui/kernel/qboxlayout.h:64: note:                QBoxLayout::QBoxLayout(QBoxLayout::Direction, QWidget*)

In file included from D:/Qt/4.4.3/include/Qt3Support/q3gridlayout.h:1,
                from D:/Qt/4.4.3/include/Qt3Support/Qt3Support:29,
                from main.cpp:1:

D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/other/q3gridlayout.h: In constructor `Q3GridLayout::Q3GridLayout(QWidget*, int, int, int, int, const char*)':
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/other/q3gridlayout.h:57: error: no matching function for call to `QGridLayout::QGridLayout(QWidget*&, int&, int&, int&, int&, const char*&)'
D:/Qt/4.4.3/include/QtGui/../../src/gui/kernel/qgridlayout.h:143: note: candidates are: QGridLayout::QGridLayout(const QGridLayout&)
D:/Qt/4.4.3/include/QtGui/../../src/gui/kernel/qgridlayout.h:65: note:                QGridLayout::QGridLayout()
D:/Qt/4.4.3/include/QtGui/../../src/gui/kernel/qgridlayout.h:64: note:                QGridLayout::QGridLayout(QWidget*)
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/other/q3gridlayout.h: In constructor `Q3GridLayout::Q3GridLayout(int, int, int, const char*)':
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/other/q3gridlayout.h:60: error: no matching function for call to `QGridLayout::QGridLayout(int&, int&, int&, const char*&)'
D:/Qt/4.4.3/include/QtGui/../../src/gui/kernel/qgridlayout.h:143: note: candidates are: QGridLayout::QGridLayout(const QGridLayout&)
D:/Qt/4.4.3/include/QtGui/../../src/gui/kernel/qgridlayout.h:65: note:                QGridLayout::QGridLayout()
D:/Qt/4.4.3/include/QtGui/../../src/gui/kernel/qgridlayout.h:64: note:                QGridLayout::QGridLayout(QWidget*)

D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/other/q3gridlayout.h: In constructor `Q3GridLayout::Q3GridLayout(QLayout*, int, int, int, const char*)':
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/other/q3gridlayout.h:64: error: no matching function for call to `QGridLayout::QGridLayout(QLayout*&, int&, int&, int&, const char*&)'
D:/Qt/4.4.3/include/QtGui/../../src/gui/kernel/qgridlayout.h:143: note: candidates are: QGridLayout::QGridLayout(const QGridLayout&)

D:/Qt/4.4.3/include/QtGui/../../src/gui/kernel/qgridlayout.h:65: note:                QGridLayout::QGridLayout()
D:/Qt/4.4.3/include/QtGui/../../src/gui/kernel/qgridlayout.h:64: note:                QGridLayout::QGridLayout(QWidget*)

In file included from D:/Qt/4.4.3/include/Qt3Support/q3databrowser.h:1,
                from D:/Qt/4.4.3/include/Qt3Support/Qt3Support:38,
                from main.cpp:1:
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/sql/q3databrowser.h: At global scope:
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/sql/q3databrowser.h:158: error: ISO C++ forbids declaration of `Confirm' with no type
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/sql/q3databrowser.h:158: error: invalid use of `::'

D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/sql/q3databrowser.h:158: error: `Confirm' declared as a `virtual' field
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/sql/q3databrowser.h:158: error: expected `;' before "confirmEdit"
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/sql/q3databrowser.h:159: error: ISO C++ forbids declaration of `Confirm' with no type
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/sql/q3databrowser.h:159: error: invalid use of `::'
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/sql/q3databrowser.h:159: error: `Confirm' declared as a `virtual' field
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/sql/q3databrowser.h:159: error: expected `;' before "confirmCancel"

In file included from D:/Qt/4.4.3/include/Qt3Support/q3datatable.h:1,
                from D:/Qt/4.4.3/include/Qt3Support/Qt3Support:39,
                from main.cpp:1:
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/sql/q3datatable.h:90: error: expected `,' or `...' before '&' token
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/sql/q3datatable.h:90: error: ISO C++ forbids declaration of `QIconSet' with no type
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/sql/q3datatable.h:95: error: expected `,' or `...' before '&' token
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/sql/q3datatable.h:95: error: ISO C++ forbids declaration of `QIconSet' with no type
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/sql/q3datatable.h:164: error: variable or field `cursorChanged' declared void
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/sql/q3datatable.h:164: error: expected `;' before '(' token
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/sql/q3datatable.h:182: error: ISO C++ forbids declaration of `Confirm' with no type

D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/sql/q3datatable.h:182: error: invalid use of `::'
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/sql/q3datatable.h:182: error: `Confirm' declared as a `virtual' field
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/sql/q3datatable.h:182: error: expected `;' before "confirmEdit"
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/sql/q3datatable.h:183: error: ISO C++ forbids declaration of `Confirm' with no type

D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/sql/q3datatable.h:183: error: invalid use of `::'
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/sql/q3datatable.h:183: error: `Confirm' declared as a `virtual' field
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/sql/q3datatable.h:183: error: expected `;' before "confirmCancel"

In file included from D:/Qt/4.4.3/include/Qt3Support/q3toolbar.h:1,
                from D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/widgets/q3mainwindow.h:42,
                from D:/Qt/4.4.3/include/Qt3Support/q3mainwindow.h:1,
                from D:/Qt/4.4.3/include/Qt3Support/Qt3Support:103,
                from main.cpp:1:
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/widgets/q3toolbar.h:61: error: `Qt::ToolBarDock' has not been declared
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/widgets/q3toolbar.h:62: error: ISO C++ forbids declaration of `parameter' with no type
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/widgets/q3toolbar.h:61: error: `DockTop' is not a member of `Qt'

In file included from D:/Qt/4.4.3/include/Qt3Support/q3mainwindow.h:1,
                from D:/Qt/4.4.3/include/Qt3Support/Qt3Support:103,
                from main.cpp:1:
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/widgets/q3mainwindow.h:88: error: variable or field `setDockEnabled' declared void
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/widgets/q3mainwindow.h:88: error: `setDockEnabled' declared as a `virtual' field
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/widgets/q3mainwindow.h:88: error: expected `;' before '(' token
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/widgets/q3mainwindow.h:89: error: expected `;' before '(' token
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/widgets/q3mainwindow.h:91: error: `Qt::Dock' has not been declared
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/widgets/q3mainwindow.h:91: error: ISO C++ forbids declaration of `dock' with no type
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/widgets/q3mainwindow.h:92: error: `Qt::Dock' has not been declared
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/widgets/q3mainwindow.h:92: error: ISO C++ forbids declaration of `dock' with no type
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/widgets/q3mainwindow.h:95: error: `Qt::Dock' has not been declared
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/widgets/q3mainwindow.h:95: error: ISO C++ forbids declaration of `parameter' with no type
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/widgets/q3mainwindow.h:97: error: `Qt::Dock' has not been declared
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/widgets/q3mainwindow.h:97: error: ISO C++ forbids declaration of `parameter' with no type
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/widgets/q3mainwindow.h:98: error: `Qt::Dock' has not been declared
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/widgets/q3mainwindow.h:98: error: ISO C++ forbids declaration of `parameter' with no type
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/widgets/q3mainwindow.h:99: error: `Qt::Dock' has not been declared
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/widgets/q3mainwindow.h:99: error: ISO C++ forbids declaration of `parameter' with no type
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/widgets/q3mainwindow.h:114: error: `Qt::Dock' has not been declared
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/widgets/q3mainwindow.h:114: error: ISO C++ forbids declaration of `dock' with no type
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/widgets/q3mainwindow.h:116: error: expected `;' before '(' token
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/widgets/q3mainwindow.h:125: error: `Qt::Dock' has not been declared
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/widgets/q3mainwindow.h:125: error: ISO C++ forbids declaration of `parameter' with no type
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/widgets/q3mainwindow.h:127: error: `Qt::Dock' has not been declared
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/widgets/q3mainwindow.h:127: error: ISO C++ forbids declaration of `parameter' with no type
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/widgets/q3mainwindow.h:128: error: `Qt::Dock' has not been declared
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/widgets/q3mainwindow.h:128: error: ISO C++ forbids declaration of `parameter' with no type
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/widgets/q3mainwindow.h:129: error: `Qt::Dock' has not been declared
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/widgets/q3mainwindow.h:129: error: ISO C++ forbids declaration of `parameter' with no type

D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/widgets/q3mainwindow.h:133: error: expected `;' before '(' token
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/widgets/q3mainwindow.h:74: error: `WType_TopLevel' is not a member of `Qt'
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/widgets/q3mainwindow.h:95: error: `DockTop' is not a member of `Qt'
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/widgets/q3mainwindow.h:97: error: `DockTop' is not a member of `Qt'
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/widgets/q3mainwindow.h:98: error: `DockTop' is not a member of `Qt'
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/widgets/q3mainwindow.h:125: error: `DockTop' is not a member of `Qt'

D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/widgets/q3mainwindow.h:127: error: `DockTop' is not a member of `Qt'
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/widgets/q3mainwindow.h:128: error: `DockTop' is not a member of `Qt'
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/widgets/q3mainwindow.h:210: error: `Qt::ToolBarDock' has not been declared
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/widgets/q3mainwindow.h:211: error: ISO C++ forbids declaration of `dock' with no type
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/widgets/q3mainwindow.h:216: error: `Qt::ToolBarDock' has not been declared
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/widgets/q3mainwindow.h:217: error: ISO C++ forbids declaration of `dock' with no type
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/widgets/q3mainwindow.h:221: error: `Qt::ToolBarDock' has not been declared
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/widgets/q3mainwindow.h:222: error: ISO C++ forbids declaration of `dock' with no type
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/widgets/q3mainwindow.h:226: error: `Qt::ToolBarDock' has not been declared
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/widgets/q3mainwindow.h:227: error: ISO C++ forbids declaration of `dock' with no type

In file included from D:/Qt/4.4.3/include/Qt3Support/q3popupmenu.h:1,
                from D:/Qt/4.4.3/include/Qt3Support/Qt3Support:104,
                from main.cpp:1:

D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/widgets/q3popupmenu.h: In member function `int Q3PopupMenu::exec()':
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/widgets/q3popupmenu.h:56: error: `findIdForAction' undeclared (first use this function)
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/widgets/q3popupmenu.h:56: error: (Each undeclared identifier is reported only once for each function it appears in.)
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/widgets/q3popupmenu.h: In member function `int Q3PopupMenu::exec(const QPoint&, int)':
D:/Qt/4.4.3/include/Qt3Support/../../src/qt3support/widgets/q3popupmenu.h:58: error: `findIdForAction' undeclared (first use this function)

make.exe: *** [main.o] Error 1

执行结束

请问一下这个问题如何解决?
[ 此贴被zhangjian在2009-02-17 15:41重新编辑 ]
离线wd007

只看该作者 1楼 发表于: 2009-02-21
我觉得恐怕跟你机器上同时有Qt3和Qt4有关,看这篇帖子,也许有帮助:
http://www.qtcn.org/bbs/read.php?tid=15735&fpage=2
欢迎访问我的博客,一起学习提高
http://blog.csdn.net/qter_wd007
快速回复
限100 字节
 
上一个 下一个