You are not logged in.
Hello I just started to use qtcreator I just wrote simple code that had
#include <stdio.h>but qtcreator says
i.imgur.com/7DQGqF4.png
I searched It a bit. People says qtcreator has /usr/include as default include directory
and I have stdio.h at /usr/include
I got qtcreator from archlinux.org/packages/extra/x86_64/qtcreator
Offline
Hi akwdjawklas,
What project template are you using? Could you check if your kits (Tools > Options > Kits) are fully configured, according to the chosen template?
Offline
Hi akwdjawklas,
What project template are you using? Could you check if your kits (Tools > Options > Kits) are fully configured, according to the chosen template?
Sorry I'm not very experienced since It's my first time to use. I don't know what you mean by configuring
Here is picture from that window;
i.imgur.com/pPYLpNc.png
Offline
This can happen if you edit a file which is not attached to any project in QtCreator. Since your kits are apparently correctly configured, you could try creating a project from scratch and editing the main file of the created project. To achieve this:
1. Create a new project in "File" > "New File or Project".
2. Choose, for example, the template "Application (Qt)" > "Qt Console Application".
3. Name your project, select qmake as the build system and choose your configured kit (named "Desktop" in your screenshot).
4. A main.cpp file will be created, replace its contents with your code to see if the required headers will be found.
5. Build and run the project in QtCreator.
Offline
2. Choose, for example, the template "Application (Qt)" > "Qt Console Application"
Considering akwdjawklas needs stdio.h, they are probably trying to build a simple C program. So the correct category will be "Non-Qt Application" -> "Plain C Application".
akwdjawklas : If you're learning C and planning to advance in it, it is quite beneficial to learn how to compile things manually and how to activate various optimizations. It is fine to use an IDE to ease out editing and debugging but learning how to use compiler is crucial for developing skills required for writing anything useful in real-word.
Offline