My first console C++ program on Qt Creator
-
@tomy said in My first console C++ program on Qt Creator:
By the way, I'm on Linux. Have you tried a plain C++ project on Linux to see if there are those red underlines or not?
Unfortunately, I don't have a Linux machine with a recent version of Qt and Qt Creator.
One thing you could try is to create a Qt Console Application, then remove Qt from the .pro file.
-
@Cobra91151
Is it on Linux, please?
The options are different between Windows and Linux. -
I don't think that
Qt Creator
is different onLinux
andWindows
. Check: Tools -> Options -> Kits -> Compilers. Then select your compiler and click Browse. Your compiler should be "..\g++.exe" or something similar to it. Check if it's available for you. -
Do you mean you only have gcc installed ?
In that case, install g++. -
Can you show what the kit you are using looks like ?
-
@tomy said in My first console C++ program on Qt Creator:
There is no g++ unfortunately.
If you have it installed, click the Add button to navigate and add the
g++
compiler toQt Creator
.Note:
Make sure you know the path tog++
compiler on your system.