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

Won't compile xxhash.c but will compile xxhash2.c

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P4: Low
    • None
    • 5.9.1
    • Build tools: qmake
    • None
    • Arch Linux with QtCreator 4.3.1 binary from the Arch repository.

    Description

      QtCreator won't properly build an application containing xxhash.c. If the file is renamed to xxhash2.c it will build. I will attach a sample project but this is how to recreate it:

      • In QtCreator, create a new plain C++ application with default settings using qmake build system.
      • Add xxhash.c and xxhash.h to the project directory from: https://github.com/Cyan4973/xxHash
      • Right click project and Add Existing Items to add xxhash.c and xxhash.h to the project.
      • In main.cpp, add #include "xxhash.h" and call XXH64_createState() from main (call can be to any xxhash.h function).
      • Build->Rebuild All.
      • Project won't link because xxhash.c wasn't compiled.
      • Right click and rename xxhash.c to xxhash2.c.
      • Build->Rebuild All.
      • Project builds and links correctly.
      • Rename xxhash2.c back to xxhash.c and project will no longer link.

      Attachments

        Issue Links

          Activity

            People

              qtbuildsystem Qt Build System Team
              dougc dougc
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: