Hey Daniweb Community,
I enter in the following code into a header file:

bool isCreated;

And as a result I get the following error:
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'isCreated'|

Any suggestions or information on how this problem is occuring?

Computer Specs:
Windows 7
Code::Blocks
Mingw32 (something like that) compiler

Sorry, Im a java coder mainly, I am not exactly sure as to why this error is happening

Thanks

Recommended Answers

All 2 Replies

Is this C or C++? "bool" isn't defined in C.

You can tell if you are trying to compile a C or C++ program by the file extension. *.c compiles as C code, while *.cpp compiles as C++ code.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.