Details
-
Bug
-
Resolution: Done
-
P2: Important
-
Qt Creator 4.7.1, Qt Creator 4.8.0-beta1
Description
If I create an empty QBS project with just one C file (not C++!), Creator will show the following error:
error: invalid argument '-std=gnu++11' not allowed with 'C'
QBS file:
import qbs Product { type: ["application"] Depends { name: "cpp" } files: [ "main.c", ] }
See the screenshot for the rest.
Note: Recently I cannot attach a screenshot when posting the initial bug. It says, "Jira could not attach the file as there was a missing token. Please try attaching the file again." Screenshot coming in first comment.
Attachments
Issue Links
- duplicates
-
QTCREATORBUG-20039 Clang Code Model treats C files as C++
-
- Closed
-
For Gerrit Dashboard: QTCREATORBUG-21188 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
241267,11 | Toolchains: Detect unspecified language version | 4.8 | qt-creator/qt-creator | Status: MERGED | -2 | 0 |