lexical and preprocessor issue on c++
-
Make sure the correct compiler are found by QtCreator - see https://doc.qt.io/qtcreator/creator-tool-chains.html
-
@alex_890
Presumably either your#include
statement is wrong, the include path is wrong, or the necessary file(s) are not present in the directories. The C++ preprocessor is not an element of Qt/Qt Creator. Pasting your include line together with the error message you presumably receive would seem relevant.... -
@alex_890
Do what? Are you asking how to use copy & paste under your operating system to show a line of code and an error message received? You're supposed to know how to do that.... -
@JonB no no, when i open a proyect it has already writen #include <iostream> but it sais file not found
@alex_890 said in lexical and preprocessor issue on c++:
but it sais file not found
What says it's not found? The compiler when you try to compile, Qt Creator with a tooltip/message against the line, or what? If the latter, does it actually error when you try to compile, are you using clang inside Creator for completion/hints? What is the include path, and have you looked inside there to make sure whether the files are actually present, or is it looking in the wrong place? Perhaps show a pic of which kit you have selected for the project?
-
it doesnt let me put any kits even i have installed all of them which come with the intalator
@alex_890
You said earlier:it wasnt marked but anyway nothing changed
Anyway, clearly if you cannot select any kits you are going to have a problem. Not my area, maybe a screenshot of what kits it shows are available or not? And how/what did you install, do you even have a C++ compiler installed, and where?
-
the thing that i said earlier was from the autodetect compiler, yes i have c++ compiler installed or at least its sais so.
-
the thing that i said earlier was from the autodetect compiler, yes i have c++ compiler installed or at least its sais so.