#Compiler complains!

29 messages ยท Page 1 of 1 (latest)

swift hull
#

I have no idea why the compiler complains in this case?

lament talonBOT
#

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.

limber briar
#

those true, false, bool are likely not defined in stdio

barren pond
#

Does adding the <stdbool.h> header help?

limber briar
#

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

swift hull
limber briar
#

you might have included them without knowing before

swift hull
#

But here it works without the library <stdbool.h>

limber briar
#

what "works" exactly ?

#

are those files exactly the same? do you compile them exactly the same?

swift hull
#

On this file, it does not work

limber briar
#

how do you compile it?

swift hull
sharp marsh
#

#include <stdbool.h>

limber briar
sharp marsh
limber briar
#

maybe thzt's the reason indeed

swift hull
sharp marsh
#

include the header named stdbool.h

limber briar
#

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)

swift hull
#

Look what I just found out. The non-working file uses C11, which does not work obviously without including <stdbool.h>

limber briar
#

it checks out

sharp marsh
#

try setting it to 23

swift hull
#

Perfect! ๐Ÿ‘

limber briar
#

or 99, and type the include trolol

swift hull
#

!solved