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

        1. disable_dynamic_source.PNG
          139 kB
          Miguel Costa
        2. qtvsaddinbug530.zip
          2 kB
          Andy Shaw
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          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