program is not getting compiled after making changes in the code.Even i tried with tutorial
program is not getting compiled after making changes in the code.Even i tried with tutorial
How do you expect us to help you if you don't provide the relevant code nor the compiler error?
J-P Nurmi
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'
Check the contents of:
- D:/Qt/4.4.3/examples/tutorials/tutorial/t1/release
- D:/Qt/4.4.3/examples/tutorials/tutorial/t1/debug
J-P Nurmi
i checked them both have t1.exe file each
So what's the problem?
J-P Nurmi
the problem is that there is no change in the output .In the code shown below:
I made following change:Qt Code:
#include <QApplication> //! [1] //! [2] #include <QPushButton> //! [2] //! [3] int main(int argc, char *argv[]) { //! [3] //! [4] //! [4] //! [5] //! [5] //! [6] hello.show(); //! [6] //! [7] return app.exec(); }To copy to clipboard, switch view to plain text mode
but in the output it is showing Hello qt as before even after saving & compilingQt Code:
//! [5] //! [5]To copy to clipboard, switch view to plain text mode
Last edited by jpn; 27th December 2008 at 08:51. Reason: missing [code] tags
Make sure to edit the correct file in the appropriate folder...
J-P Nurmi
the code of tutorial t1 which has main.cpp,release,debug,tmp & 4 make files.I made changes in main.cpp
Bookmarks