Results 1 to 7 of 7

Thread: std::cout in Qt windows application

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    554
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanked 86 Times in 81 Posts

    Default Re: std::cout in Qt windows application

    Quote Originally Posted by Lesiok View Post
    You have to link with /SUBSYSTEM:CONSOLE.
    Which means you have to remove 'WIN32' from ADD_EXECUTABLE call as explained in the doc: https://cmake.org/cmake/help/latest/...xecutable.html and https://cmake.org/cmake/help/latest/...N32_EXECUTABLE

  2. The following user says thank you to ChristianEhrlicher for this useful post:

    d_stranz (13th February 2021)

Similar Threads

  1. Replies: 2
    Last Post: 14th April 2016, 20:43
  2. cout to stdout in Qt Console Application
    By tuli in forum Qt Programming
    Replies: 3
    Last Post: 6th March 2013, 12:51
  3. cout in Qt
    By qt_developer in forum Newbie
    Replies: 3
    Last Post: 25th May 2012, 22:02
  4. where is cout
    By hqking1988 in forum General Programming
    Replies: 3
    Last Post: 22nd August 2010, 03:35
  5. Replies: 3
    Last Post: 12th July 2010, 06:25

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
  •  
Qt is a trademark of The Qt Company.