Results 1 to 3 of 3

Thread: about console application

  1. #1
    Join Date
    Jul 2008
    Posts
    12
    Thanks
    2

    Default about console application

    Hi all, I have create a simple hello world application in Qt Console application. I use Qt 4.4.3 with eclipse integration plug-in. When I build and run in eclipse it work fine, the Hello World message show up. But when I using command prompt(cmd) then go to the debug folder and call the program directly nothing happen!

    Does anyone know why?

  2. #2
    Join Date
    Jul 2008
    Posts
    12
    Thanks
    2

    Default Re: about console application

    by the way here is the code

    Qt Code:
    1. #include <iostream>
    2. #include <QtCore>
    3. #include <QCoreApplication>
    4.  
    5. using namespace std;
    6.  
    7. int main(int argc, char *argv[])
    8. {
    9. cout << "Hello World\n";
    10.  
    11. return 0;
    12. }
    To copy to clipboard, switch view to plain text mode 

  3. #3
    Join Date
    Nov 2010
    Location
    Budapest, Hungary
    Posts
    125
    Thanks
    17
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: about console application

    it may be that the neccessary libraries are not included using the comamnd prompt. (pretty old post, but maybe still a question for some, hopefully myou have already found the answer)
    Szilvi

Similar Threads

  1. Replies: 8
    Last Post: 28th January 2015, 09:45
  2. unable to run Console application
    By jay in forum Qt Programming
    Replies: 4
    Last Post: 12th June 2008, 07:33
  3. run a console application through a gui interface
    By gurinder in forum Qt Programming
    Replies: 3
    Last Post: 5th February 2008, 12:52
  4. Console application suspense
    By TheGrimace in forum Newbie
    Replies: 6
    Last Post: 1st October 2007, 14:52
  5. build a gui ontop of a console application
    By aegis in forum Qt Programming
    Replies: 3
    Last Post: 25th March 2007, 12:16

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.