Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-31941

std::cout doesn't work with Qt 6.5.3 and Qt Creator 14.0.0.2 in debug mode (MSVC_64 SDK)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • Qt Creator 14.0.2
    • C/C++/Obj-C++ Support
    • Windows

    Description

      In project.pro,  I did the following:

      CONFIG += c++17
      SOURCES += \
          main.cpp 

      In main.cpp, the code is very simple:

      #include "iostream"
      int main(int argc, char *argv[])
      {
          std::cout << "Test output" << std::endl;
      }
       

       

      note: `using msvc_64 sdk`

      When I select "Debug" and choose "Start debugging of setup project," nothing appears in the console except for "xxx finished." However, "Run Project" works fine, and even using QTextStream(stdout) doesn’t output anything either.

      I tried using the MinGW SDK, and it worked as expected.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kandeler Christian Kandeler
            shisan Shisan xing
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes