Results 1 to 2 of 2

Thread: SDK 2010.05 - 'Hallo world' doesn't work on Windows 7 64bit

  1. #1
    Join Date
    May 2009
    Posts
    75
    Thanks
    5
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default SDK 2010.05 - 'Hallo world' doesn't work on Windows 7 64bit

    I have installed SDK 2010.05 on windows 7 64bit.

    then I try the simplest C source, the first example of every book that explain C language.

    the hallo_world.c
    Qt Code:
    1. #include <stdio.h>
    2. int main(void)
    3. {
    4. printf("hallo world\n");
    5. return 0;
    6. }
    To copy to clipboard, switch view to plain text mode 
    No errors or warning in compilation (how can be?) but tring executing no string is output, neither on QT Creator's 'Application Output' windows nor on cmd console.

    where I am wrong?

    thanks

  2. #2
    Join Date
    May 2010
    Location
    Romania
    Posts
    1,021
    Thanks
    62
    Thanked 260 Times in 246 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: SDK 2010.05 - 'Hallo world' doesn't work on Windows 7 64bit

    For console applications on Windows you need the following line added in your project file (the .pro one):
    Qt Code:
    1. CONFIG += console
    To copy to clipboard, switch view to plain text mode 
    After you add the line Clean and Rebuild project.

Similar Threads

  1. HowTo get work Microsoft VS 2010 and Qt Visual Studio Add-in?
    By NewLegend in forum Installation and Deployment
    Replies: 15
    Last Post: 17th October 2010, 19:15
  2. Qt 4.7.0 source compilation errors (MSVC 2010, Windows 7 Ultimate 64-bit)
    By andrey.khaletsky in forum Installation and Deployment
    Replies: 3
    Last Post: 30th September 2010, 09:16
  3. Problem building Qt on MS windows server 64bit system
    By _patrice_ in forum Installation and Deployment
    Replies: 0
    Last Post: 9th July 2010, 22:32
  4. QSettings and Windows 7 64bit
    By JohnToddSr in forum Newbie
    Replies: 4
    Last Post: 12th May 2010, 03:01
  5. how to write hello world sample QT application on windows mobile
    By pallavi Boyapat in forum Qt Programming
    Replies: 8
    Last Post: 3rd November 2008, 13:06

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.