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

QMake silently skips source files it suspects of circular dependencies

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • 4.6.2
    • Build tools: qmake
    • None
    • WindowsXP, NokiaQtSDK, Maemo target (using MADDE cross compilation environment)

      Create the following two files:

      Source.c:
      #if !defined(AAA)
      #include "Include.h"
      #else
      // Code here
      #endif

      Include.h:
      #define AAA
      #include "Source.c"
      #undef AAA

      Now, include Source.c into the SOURCES line of the QMake project file (.pro) and run QMake. The resulting Makefile will not contain any mention of Source.c and no error messages will be printed when generating it. A close analysis of the above example shows that these two files DO NOT constitute a circular dependency, but QMake apparently sill thinks that they are.

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

            buddenha Oswald Buddenhagen
            fms Marat Fayzullin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes