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

qmake doesn't support .c++ file extensions

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P4: Low
    • None
    • 5.11.3, 6.0.0
    • Build tools: qmake
    • None
    • 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

            qtbuildsystem Qt Build System Team
            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