PDA

View Full Version : program not getting compiled...please help



sh123
27th December 2008, 06:57
program is not getting compiled after making changes in the code.Even i tried with tutorial

jpn
27th December 2008, 07:06
How do you expect us to help you if you don't provide the relevant code nor the compiler error? :)

sh123
27th December 2008, 07:11
compiler is not giving any error but following msg is displayed:
mingw32-make -f Makefile.Debug all
mingw32-make[1]: Entering directory `D:/Qt/4.4.3/examples/tutorials/tutorial/t1'

g++ -c -g -Wall -frtti -fexceptions -mthreads -DUNICODE -DQT_LARGEFILE_SUPPORT -
DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..
\..\..\include\QtCore" -I"..\..\..\..\include\QtCore" -I"..\..\..\..\include\QtG
ui" -I"..\..\..\..\include\QtGui" -I"..\..\..\..\include" -I"d:\Qt\4.4.3\include
\ActiveQt" -I"tmp\moc\debug_shared" -I"." -I"..\..\..\..\mkspecs\win32-g++" -o t
mp\obj\debug_shared\main.o main.cpp
mingw32-make[1]: Leaving directory `D:/Qt/4.4.3/examples/tutorials/tutorial/t1'
mingw32-make -f Makefile.Release all
mingw32-make[1]: Entering directory `D:/Qt/4.4.3/examples/tutorials/tutorial/t1'

g++ -c -O2 -Wall -frtti -fexceptions -mthreads -DUNICODE -DQT_LARGEFILE_SUPPORT
-DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS
_QMAIN -I"..\..\..\..\include\QtCore" -I"..\..\..\..\include\QtCore" -I"..\..\..
\..\include\QtGui" -I"..\..\..\..\include\QtGui" -I"..\..\..\..\include" -I"d:\Q
t\4.4.3\include\ActiveQt" -I"tmp\moc\release_shared" -I"." -I"..\..\..\..\mkspec
s\win32-g++" -o tmp\obj\release_shared\main.o main.cpp
mingw32-make[1]: Leaving directory `D:/Qt/4.4.3/examples/tutorials/tutorial/t1'

jpn
27th December 2008, 07:13
Check the contents of:

D:/Qt/4.4.3/examples/tutorials/tutorial/t1/release
D:/Qt/4.4.3/examples/tutorials/tutorial/t1/debug

sh123
27th December 2008, 07:16
i checked them both have t1.exe file each

jpn
27th December 2008, 07:34
So what's the problem?

sh123
27th December 2008, 07:43
the problem is that there is no change in the output .In the code shown below:

#include <QApplication>
//! [1] //! [2]
#include <QPushButton>
//! [2]

//! [3]
int main(int argc, char *argv[])
{
//! [3] //! [4]
QApplication app(argc, argv);
//! [4]

//! [5]
QPushButton hello("Hello qt");
//! [5]

//! [6]
hello.show();
//! [6] //! [7]
return app.exec();
}
I made following change:

//! [5]
QPushButton hello("Hello world");
//! [5]
but in the output it is showing Hello qt as before even after saving & compiling

jpn
27th December 2008, 07:53
Make sure to edit the correct file in the appropriate folder...

sh123
27th December 2008, 08:11
the code of tutorial t1 which has main.cpp,release,debug,tmp & 4 make files.I made changes in main.cpp