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

qmake doesn't support .c++ file extensions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4: Low
    • Resolution: Out of scope
    • Affects Version/s: 5.11.3, 6.0.0
    • Fix Version/s: None
    • Component/s: Build tools: qmake
    • Labels:
      None
    • Platform/s:
      Linux/X11

      Description

      QMake seems to classify .c++ files as C source code.

      From this project file:

      SOURCES += "main.c++"
      

      it generates a makefile containing:

      main.o: main.c++
         $(CC) -c $(CFLAGS) $(INCPATH) -o main.o main.c++
      

      instead of the correct rule: (if you change main.c++ to main.cpp)

      main.o: main.cpp
         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp
      

        Attachments

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

          Activity

            People

            Assignee:
            qtbuildsystem Qt Build System Team
            Reporter:
            12 12 zwsp
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes