Qt Creator: Qt Creator shows errors in fresh project, but code compiles fine
Dev Tools 2020. 12. 6. 18:28
Q: Context: I recently switched from debian stable to debian testing so I have updated several hundred packages since the last time I used QT creator.
When I create a new project in QT creator I am greeted with many error messages.
For example, here are the errors for the autogenerated main.cpp class in a fresh project:
cstddef:50:10: fatal error: 'stddef.h' file not found error: variable has incomplete type 'QApplication' forward declaration of 'QApplication' unknown type name 'MainWindow'
When I open up previous projects that I know have no errors they also show a whole bunch of similar errors.
However, all of these projects build and run just fine.
What is causing this?
A: I found the solution to this problem in this bug report.
The libclang-common-8-dev package needs to be installed. After installing this package and restarting qt creator all of the errors went away.
'Dev Tools' 카테고리의 다른 글
Git Usages (0) | 2015.07.18 |
---|---|
Node.js와 Node-webkit을 설치하고 사용하기. (0) | 2015.06.18 |
How to get current directory(current path) using node-webkit (2) | 2015.06.15 |
노드웹킷(node-webkit)을 이용하여 현재 경로 얻기 (5) | 2015.06.15 |