#Compiler complains!
29 messages ยท Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
those true, false, bool are likely not defined in stdio
Does adding the <stdbool.h> header help?
it's also a good idea to actually share your erorr message ๐ ... not that guessing random errors isn't fun, but well, you know, just to gain some time
Yes, it helps. I've never really used the library <stdbool.h> and it also worked. Why wouldn't it work this time?
^
you might have included them without knowing before
But here it works without the library <stdbool.h>
what "works" exactly ?
are those files exactly the same? do you compile them exactly the same?
On this file, it does not work
how do you compile it?
I don't use VSC at the moment, so the IDE compiles automatically I guess
#include <stdbool.h>
it's always a good idea to know how your IDE is configured ๐
or, just compile with C2X
maybe thzt's the reason indeed
Do you guys use CLion and know how to do that? ๐
just type it
include the header named stdbool.h
usually in jetbrains products, there is a "Project" tab somewhere, where you can configure the projects and in particular, the language level and that kind of things
idk for CLion explicitly (but for IntelliJ and PyCharm, it works like that)
Look what I just found out. The non-working file uses C11, which does not work obviously without including <stdbool.h>
it checks out
try setting it to 23
Perfect! ๐
or 99, and type the include 
!solved