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

Unable to compile when using QMAKE_CXXFLAGS += -ZW

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • None
    • 5.6.0 Beta, 5.6.0 RC
    • Build tools: Other
    • None
    • All MSVC2015 builds
    • WinRT

    Description

      I've added the following line in my project file:

      QMAKE_CXXFLAGS += -ZW
      

      but when I try to compile, it fails and I get the following output:

          cl -c -nologo -FS -Zc:strictStrings -Zc:throwingNew -FS -ZW -O2 -MD -GR -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -EHsc -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQ_BYTE_ORDER=Q_LITTLE_ENDIAN -DQT_NO_PRINTER -DQT_NO_PRINTDIALOG -DWINAPI_FAMILY=WINAPI_FAMILY_PC_APP -DWINAPI_PARTITION_PHONE_APP=1 -DX64 -D__X64__ -D__x64__ -DQT_NO_DEBUG -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_OPENGL_ES_2 -DQT_OPENGL_ES_2_ANGLE -DNDEBUG -I..\untitled -I. -I..\..\..\Qt\Qt5.6.0\5.6\winrt_x64_msvc2015\include -I..\..\..\Qt\Qt5.6.0\5.6\winrt_x64_msvc2015\include\QtQuick -I..\..\..\Qt\Qt5.6.0\5.6\winrt_x64_msvc2015\include\QtGui -I..\..\..\Qt\Qt5.6.0\5.6\winrt_x64_msvc2015\include\QtANGLE -I..\..\..\Qt\Qt5.6.0\5.6\winrt_x64_msvc2015\include\QtQml -I..\..\..\Qt\Qt5.6.0\5.6\winrt_x64_msvc2015\include\QtNetwork -I..\..\..\Qt\Qt5.6.0\5.6\winrt_x64_msvc2015\include\QtCore -Irelease -I..\..\..\Qt\Qt5.6.0\5.6\winrt_x64_msvc2015\mkspecs\winrt-x64-msvc2015 -Forelease\ @C:\Users\Adrian\AppData\Local\Temp\main.obj.15664.0.jom
      main.cpp
      ..\untitled\main.cpp: fatal error C1107: could not find assembly 'platform.winmd': please specify the assembly search path using /AI or by setting the LIBPATH environment variable
      

      It only happens with MSVC2015 builds. Everything works fine while using MSVC2013 builds.

      Attachments

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

        Activity

          People

            mkalinow Maurice Kalinowski
            adrian.gabureanu Adrian Gabureanu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes