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

Debug mode sets wrong NDEBUG flag.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • 2.5.1
    • 2.4.3
    • General
    • None
    • All

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes