Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
erroneous editor issue altough i can compile with gcc arm
I can compile all the code with gcc arm, and debug the stm microcontroller through a STLink device (Bare metal).
Unforutnately, when i edit the main for example, i have got many errors and warning all along the file.
I think it is due to different paths between gcc compiler and qtcreator editor.
Unfortunately, i dont know how to inform qtcreator editor to use the same paths.
I tried the three options in CMake tab of "compiler and execute" without success.
If you could help, i will learn something...
which Creator version do you use? on which platform?
also, which error do you exactly get?
Yes, you are right.
I have a virtualbox of ubuntu 18.04.1 LTS with QT Creator 4.7.1 and I did not have this problem when i installed with QT Creator 4.6.2.
please provide the exact error message you get.
Creator 4.7 has the Clang Code Model activated, which was not the case for 4.6.
Thanks for your interest.
I have got errors all along every files due to include issue like this
==> expected "FILENAME" or <FILENAME>
I tried to configure or desactivate clang code model but without success.
Well, you could disable Clang Code Model in Help > About Plugins > ClangCodeModel, but the "classic" code model is no longer developed and everything new goes to Clang.
That said, the code model is fully right, your include looks unfamiliar to me. Is that a macro? If yes, where is it defined?
What type of project are you using?
It is C code for ARM microcontroleur.
This include is to have the possibility to have same code for different microcontroler.
In makefile, there is boardconfig.mk in include with
and in CFLAGS:
you still didn't answer which project type you are using.
It is for sure that Clang complains if it does not know that macro.
I just tried with a Generic Project and by adding
#define INCLUDE_MAIN_H "main.h"I was able to resolve this header without problems, see screenshot:
chrisPyres66 last edited by chrisPyres66
Sorry, i try to be clearer
I test the open source code of OpenMV camera at : https://openmv.io/
I dont know what is the project type, but i can tell it is for STM microntroller, compiled with gcc, and debugged with baremetal through stlink device.
Effectively, if i disactivate clang code model (and not clang tools), the errors disappears.
I'm sorry, but it's hard to help you if you provide so less information. If you don't give me the project download link, how should I find the project on that page?
Surely you can deactivate Clang, but sooner or later you'll need to fix that anyway - so why not now?
Edit: And if the problem is solved for you, then please close this topic as SOLVED too.
I dont know what os you use, there is the github here :
or the download page here
but the install is not easy, you have a guide here :
I hope it helps,
I don't want to install or download that project. All I wanted to know, which project type you are using. According the wiki:
Go to File -> New File or Project... -> Import Project -> Import Existing Project - a dialog box will then popup.
you are using a Generic Project and therefore you can use the fix I have written above yesterday.