Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-23389

Invalid makefile generated for projects whith files with the same name in separate directories

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • Qt Creator 4.11.0
    • None
    • Tested on both Windows and Mac with the latest version of QT Creator.
    • All

    Description

      Imagine you have a project with two .cpp files in separate folders, for instance:

        1)  generate/workflow.cpp

        2) dataflow/workflow.cpp

      These two files are listed in the .pro project file as source files.

      When you build the project, the same ouput workflow.o is generated for both files, which means that one of the file appears to not be compiled at link time, which leads to undefined symbols.

      The workaround is of course to rename one of the file, but I lost many hours scratching my head about this problem.
      Please note that this may occur with file names that differ by the case of some chars. Linux file system, being case sensitive, is not affected in that particular case.

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            omatrot Olivier MATROT
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes