Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-23078

qDebug() bug printing long-long-int on windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 5.1.0
    • 4.7.4
    • Core: I/O
    • None
    • QtCreator 2.3.1 Qt4.7.4

    Description

      It seems that there is no way to print a long long int with qDebug on windows + minGw:

      qDebug("val=%lld", _longlongintval);

      gives

      >warning: unknown conversion type character 'l' in format

      while

      qDebug("val=%I64d", _longlongintval);

      simply print something like: "val=%I64d"

      replacing the qDebug() with a printf() works fine with the "%64d" placeholder.

      Attachments

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

        Activity

          People

            kkohne Kai Köhne
            iw2lsi Giampaolo Bellini
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes