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

Qt sets -D_HAS_EXCEPTIONS=0 on MSVC 2013

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.9.3
    • 5.10.0 Alpha
    • Build tools: qmake
    • None
    • 16f144db2916e5be5d4409154d77e01e07714251

    Description

      Defining _HAS_EXCEPTIONS=0 is unsupported and causes a build error in MSVC 2013 headers, see for instance the build logs of https://codereview.qt-project.org/#/c/205744/

      C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\concrt.h(4774) : error C3861: '__uncaught_exception': identifier not found
      

      See also https://connect.microsoft.com/VisualStudio/feedback/details/811347/compiling-vc-12-0-with-has-exceptions-0-and-including-concrt-h-causes-a-compiler-error

      Macro _HAS_EXCEPTIONS=0 is undocumented and unsupported by Microsoft.

      And also https://stackoverflow.com/questions/34273095/c-visual-studio-2012-issues

      Attachments

        For Gerrit Dashboard: QTBUG-63409
        # Subject Branch Project Status CR V

        Activity

          People

            jbornema Joerg Bornemann
            peppe Giuseppe D'Angelo
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes