Results 1 to 9 of 9

Thread: program not getting compiled...please help

  1. #1
    Join Date
    Nov 2008
    Posts
    52
    Qt products
    Qt4
    Platforms
    Windows

    Default program not getting compiled...please help

    program is not getting compiled after making changes in the code.Even i tried with tutorial

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: program not getting compiled...please help

    How do you expect us to help you if you don't provide the relevant code nor the compiler error?
    J-P Nurmi

  3. #3
    Join Date
    Nov 2008
    Posts
    52
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: program not getting compiled...please help

    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'

  4. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: program not getting compiled...please help

    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

  5. #5
    Join Date
    Nov 2008
    Posts
    52
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: program not getting compiled...please help

    i checked them both have t1.exe file each

  6. #6
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: program not getting compiled...please help

    So what's the problem?
    J-P Nurmi

  7. #7
    Join Date
    Nov 2008
    Posts
    52
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: program not getting compiled...please help

    the problem is that there is no change in the output .In the code shown below:
    Qt Code:
    1. #include <QApplication>
    2. //! [1] //! [2]
    3. #include <QPushButton>
    4. //! [2]
    5.  
    6. //! [3]
    7. int main(int argc, char *argv[])
    8. {
    9. //! [3] //! [4]
    10. QApplication app(argc, argv);
    11. //! [4]
    12.  
    13. //! [5]
    14. QPushButton hello("Hello qt");
    15. //! [5]
    16.  
    17. //! [6]
    18. hello.show();
    19. //! [6] //! [7]
    20. return app.exec();
    21. }
    To copy to clipboard, switch view to plain text mode 
    I made following change:
    Qt Code:
    1. //! [5]
    2. QPushButton hello("Hello world");
    3. //! [5]
    To copy to clipboard, switch view to plain text mode 
    but in the output it is showing Hello qt as before even after saving & compiling
    Last edited by jpn; 27th December 2008 at 08:51. Reason: missing [code] tags

  8. #8
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: program not getting compiled...please help

    Make sure to edit the correct file in the appropriate folder...
    J-P Nurmi

  9. #9
    Join Date
    Nov 2008
    Posts
    52
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: program not getting compiled...please help

    the code of tutorial t1 which has main.cpp,release,debug,tmp & 4 make files.I made changes in main.cpp
    Attached Files Attached Files

Similar Threads

  1. Replies: 19
    Last Post: 21st January 2008, 10:13
  2. Replies: 5
    Last Post: 29th October 2007, 23:49
  3. Version setting in QT Program
    By sabeesh in forum Qt Programming
    Replies: 4
    Last Post: 24th October 2007, 13:07
  4. Use VC2005 to compile Qt program (4.3.0)
    By firegun9 in forum Qt Programming
    Replies: 3
    Last Post: 8th June 2007, 17:04
  5. QT MySQL
    By sabeeshcs in forum Newbie
    Replies: 6
    Last Post: 12th January 2007, 05:19

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.