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

When a file includes the generated moc output for a header file as well as its own generated moc output then it will fail to build

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.2.1
    • Component/s: General
    • Environment:
      Windows 10 + MSVC 2015
    • Commits:
      41966c712db87b252d83593c391951453cc45987

      Description

      When a file includes the generated moc output for a header file as well as its own generated moc output then it will fail to build. For example if it has:

      #include "moc_foo.cpp"
      #include "foo.moc"
      

      then it will have compile errors or linker errors. Using qmake directly works fine.

        Attachments

        For Gerrit Dashboard: QTVSADDINBUG-530
        # Subject Branch Project Status CR V

          Activity

            People

            • Assignee:
              mecfc Miguel Costa
              Reporter:
              andysh Andy Shaw
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes