[Qt-interest] compile failed
Malyushytsky, Alex
alex at wai.com
Wed Jul 27 21:55:27 CEST 2011
Make sure that "ui_mainwindow.h" was built.
According to the error messages I expect it was not.
Alex
-----Original Message-----
From: qt-interest-bounces+alex=wai.com at qt.nokia.com [mailto:qt-interest-bounces+alex=wai.com at qt.nokia.com] On Behalf Of pengliang(??)
Sent: Tuesday, July 26, 2011 7:57 PM
To: qt-interest at qt.nokia.com
Subject: [Qt-interest] compile failed
Hi All:
I compiled my program which is attached file failed. But I could not find any error in my program.
Could anybody help me to check the error message and tell me why I failed.
Thanks and BR.
Ken
------------------------------------------------- error message
g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE
g++ -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB
g++ -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT
g++ -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN
g++ -I"d:\ProgramFiles\Qt\4.7.3\include\QtCore"
g++ -I"d:\ProgramFiles\Qt\4.7.3\include\QtGui"
g++ -I"d:\ProgramFiles\Qt\4.7.3\include"
g++ -I"d:\ProgramFiles\Qt\4.7.3\include\ActiveQt" -I"debug" -I"."
g++ -I"..\calCouponGui" -I"."
g++ -I"d:\ProgramFiles\Qt\4.7.3\mkspecs\win32-g++" -o debug\mainwindow.o
g++ ..\calCouponGui\mainwindow.cpp
..\calCouponGui\mainwindow.cpp: In constructor 'MainWindow::MainWindow(QWidget*)':
..\calCouponGui\mainwindow.cpp:8: error: invalid use of incomplete type 'struct Ui::MainWindow'
..\calCouponGui\/mainwindow.h:9: error: forward declaration of 'struct Ui::MainWindow'
..\calCouponGui\mainwindow.cpp:10: error: invalid use of incomplete type 'struct Ui::MainWindow'
..\calCouponGui\/mainwindow.h:9: error: forward declaration of 'struct Ui::MainWindow'
..\calCouponGui\mainwindow.cpp: In destructor 'virtual MainWindow::~MainWindow()':
..\calCouponGui\mainwindow.cpp:19: warning: possible problem detected in invocation of delete operator:
..\calCouponGui\mainwindow.cpp:19: warning: invalid use of incomplete type 'struct Ui::MainWindow'
..\calCouponGui\/mainwindow.h:9: warning: forward declaration of 'struct Ui::MainWindow'
..\calCouponGui\mainwindow.cpp:19: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined.
..\calCouponGui\mainwindow.cpp: In member function 'void MainWindow::initMSW1()':
..\calCouponGui\mainwindow.cpp:25: error: invalid use of incomplete type 'struct Ui::MainWindow'
..\calCouponGui\/mainwindow.h:9: error: forward declaration of 'struct Ui::MainWindow'
..\calCouponGui\mainwindow.cpp:29: error: invalid use of incomplete type 'struct Ui::MainWindow'
..\calCouponGui\/mainwindow.h:9: error: forward declaration of 'struct Ui::MainWindow'
..\calCouponGui\mainwindow.cpp:30: error: invalid use of incomplete type 'struct Ui::MainWindow'
..\calCouponGui\/mainwindow.h:9: error: forward declaration of 'struct Ui::MainWindow'
..\calCouponGui\mainwindow.cpp:31: error: invalid use of incomplete type 'struct Ui::MainWindow'
..\calCouponGui\/mainwindow.h:9: error: forward declaration of 'struct Ui::MainWindow'
..\calCouponGui\mainwindow.cpp:32: error: invalid use of incomplete type 'struct Ui::MainWindow'
..\calCouponGui\/mainwindow.h:9: error: forward declaration of 'struct Ui::MainWindow'
..\calCouponGui\mainwindow.cpp:33: error: invalid use of incomplete type 'struct Ui::MainWindow'
..\calCouponGui\/mainwindow.h:9: error: forward declaration of 'struct Ui::MainWindow'
..\calCouponGui\mainwindow.cpp:34: error: invalid use of incomplete type 'struct Ui::MainWindow'
..\calCouponGui\/mainwindow.h:9: error: forward declaration of 'struct Ui::MainWindow'
..\calCouponGui\mainwindow.cpp: In member function 'void MainWindow::on_msw1InsertPushButton_clicked()':
..\calCouponGui\mainwindow.cpp:46: error: invalid use of incomplete type 'struct Ui::MainWindow'
..\calCouponGui\/mainwindow.h:9: error: forward declaration of 'struct Ui::MainWindow'
..\calCouponGui\mainwindow.cpp:47: error: invalid use of incomplete type 'struct Ui::MainWindow'
..\calCouponGui\/mainwindow.h:9: error: forward declaration of 'struct Ui::MainWindow'
..\calCouponGui\mainwindow.cpp:58: error: invalid use of incomplete type 'struct Ui::MainWindow'
..\calCouponGui\/mainwindow.h:9: error: forward declaration of 'struct Ui::MainWindow'
..\calCouponGui\mainwindow.cpp:59: error: invalid use of incomplete type 'struct Ui::MainWindow'
..\calCouponGui\/mainwindow.h:9: error: forward declaration of 'struct Ui::MainWindow'
..\calCouponGui\mainwindow.cpp:60: error: invalid use of incomplete type 'struct Ui::MainWindow'
..\calCouponGui\/mainwindow.h:9: error: forward declaration of 'struct Ui::MainWindow'
..\calCouponGui\mainwindow.cpp:61: error: invalid use of incomplete type 'struct Ui::MainWindow'
..\calCouponGui\/mainwindow.h:9: error: forward declaration of 'struct Ui::MainWindow'
..\calCouponGui\mainwindow.cpp: In member function 'void MainWindow::on_msw1DeletePushButton_clicked()':
..\calCouponGui\mainwindow.cpp:67: error: invalid use of incomplete type 'struct Ui::MainWindow'
..\calCouponGui\/mainwindow.h:9: error: forward declaration of 'struct Ui::MainWindow'
..\calCouponGui\mainwindow.cpp:75: error: invalid use of incomplete type 'struct Ui::MainWindow'
..\calCouponGui\/mainwindow.h:9: error: forward declaration of 'struct Ui::MainWindow'
..\calCouponGui\mainwindow.cpp:78: error: invalid use of incomplete type 'struct Ui::MainWindow'
..\calCouponGui\/mainwindow.h:9: error: forward declaration of 'struct Ui::MainWindow'
..\calCouponGui\mainwindow.cpp: In member function 'void MainWindow::on_msw1LayerCountLineEdit_textChanged(QString)':
..\calCouponGui\mainwindow.cpp:88: error: invalid use of incomplete type 'struct Ui::MainWindow'
..\calCouponGui\/mainwindow.h:9: error: forward declaration of 'struct Ui::MainWindow'
..\calCouponGui\mainwindow.cpp:89: error: invalid use of incomplete type 'struct Ui::MainWindow'
..\calCouponGui\/mainwindow.h:9: error: forward declaration of 'struct Ui::MainWindow'
..\calCouponGui\mainwindow.cpp:90: error: invalid use of incomplete type 'struct Ui::MainWindow'
..\calCouponGui\/mainwindow.h:9: error: forward declaration of 'struct Ui::MainWindow'
..\calCouponGui\mainwindow.cpp:108: error: invalid use of incomplete type 'struct Ui::MainWindow'
..\calCouponGui\/mainwindow.h:9: error: forward declaration of 'struct Ui::MainWindow'
..\calCouponGui\mainwindow.cpp:109: error: invalid use of incomplete type 'struct Ui::MainWindow'
..\calCouponGui\/mainwindow.h:9: error: forward declaration of 'struct Ui::MainWindow'
..\calCouponGui\mainwindow.cpp:110: error: invalid use of incomplete type 'struct Ui::MainWindow'
..\calCouponGui\/mainwindow.h:9: error: forward declaration of 'struct Ui::MainWindow'
mingw32-make[1]: Leaving directory `E:/qt/calCouponGui-build-desktop'
mingw32-make: Leaving directory `E:/qt/calCouponGui-build-desktop'
mingw32-make[1]: *** [debug/mainwindow.o] Error 1
mingw32-make: *** [debug] Error 2
The process "D:/ProgramFiles/Qt/qtcreator-2.0.1/mingw/bin/mingw32-make.exe" exited with code %2.
Error while building project calCouponGui (target: Desktop) When executing build step 'Make'
---------------------------------------------------------------------------------------------------
Weidlinger Associates, Inc. made the following annotations.
“This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you.”
“Please consider our environment before printing this email.”
More information about the Qt-interest-old
mailing list