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

    • Type: Bug
    • Status: Need More Info
    • Priority: Not Evaluated
    • Resolution: Incomplete
    • Affects Version/s: Qt Creator 4.11.0
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Tested on both Windows and Mac with the latest version of QT Creator.
    • Platform/s:
      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

            • Assignee:
              kandeler Christian Kandeler
              Reporter:
              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