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

qbusconnection.h doesn't seem to work in Visual Studio 2013

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 5.4.0, 5.5.0
    • Core: Other
    • None
    • Windows 10, Visual Studio 2013+

    Description

      When I try to compile anything that includes this header file I get compiler errors:

      Error 1 error C2332: 'struct' : missing tag name (C:\Users\Petr Bena\Documents\quassel\src\qtui\statusnotifieritemdbus.cpp) d:\libs\qt\5.5\msvc2013_64\include\qtdbus\qdbusconnection.h 144

      This is caused by a variable name "interface" used in this header which became a C++ Visual Studio keyword: https://msdn.microsoft.com/en-us/library/737cydt1.aspx

      the whole "interface" word is now interpreted in a different way and the code in header causes a syntax error.

      Solution might be renaming it from "interface" to something else, like "qinterface" or whatever.

      Attachments

        Issue Links

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

          Activity

            People

              thiago Thiago Macieira
              petrbena Petr Bena
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes