Uploaded image for project: 'Qt Visual Studio Tools'
  1. Qt Visual Studio Tools
  2. QTVSADDINBUG-764

Debug mode sets wrong NDEBUG flag.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Duplicate
    • Affects Version/s: 2.4.3
    • Fix Version/s: 2.5.1
    • Component/s: General
    • Labels:
      None
    • Platform/s:
      All

      Description

      The Qt_defines_ macro seems to set the debug flag wrong (it is set as /D "NDEBUG" isntead of /D "_DEBUG"). This causes standard assert's to not work anymore.

      To reproduce, simply create a new Qt console or GUI application in visual studio and check the debug flags in the C/C++ command line.

      To check that asserts are not properly compiled, add "assert(false)" to the main function and build&run.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              mecfc Miguel Costa
              Reporter:
              pb Pablo Bauszat
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes