Details
-
Bug
-
Resolution: Done
-
P2: Important
-
Qt Creator 3.1.0-beta
-
None
-
MinGW
Description
Since the following commit:
commit 31d051a52a884cd4c56288bdc776945698f7357c Author: Erik Verbruggen <erik.verbruggen@digia.com> Date: Tue Jan 21 14:57:00 2014 +0100 Clang: tune include paths used by clang Do not search the standard system directories for include files, but do search compiler builtin include directories. To make sure that the include files for intrinsics are the ones clang can parse, put that path first on the command-line. Change-Id: I2ada992b58203d1c3dbd55851c5f195c12572943 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
...I get the following error message when opening a simple Hello World C project (generic or cmake based):
implicitly declaring C library function 'printf' with type 'int (const char *, ...)' please include the header <stdio.h> or explicitly provide a declaration for 'printf'
Hitting "F2" while the cursor is over "printf" brings me to "stdio.h". When I comment out "#include <stdio.h>", the error message disappears, but "F2" stops working.
update:
It seems that this error only occurs when the source file is opened for the first time. After the source file is closed and opened again, the error is gone.
Attachments
Issue Links
- resulted in
-
QTCREATORBUG-11709 Change/fix the ProjectPart into groups per language+dialect
-
- Closed
-
For Gerrit Dashboard: QTCREATORBUG-11501 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
80737,1 | Clang: never include a define for __cplusplus. | 3.1 | qt-creator/qt-creator | Status: MERGED | -1 | 0 |