unknown type

how to fix this error?

error: unknown type name 'bool'

 
bool readArguments(int argc, char *argv[],char** imgName,uint32_t* gaussianSize,float* gaussianSigma);


Normally I used bool in VS2010 but in Code::Blocks this is undefined
Last edited on
Are you using C or C++? Make sure your compiler is set for g++ and not gcc.

Looks like you're using Code Blocks judging from your other posts, so your compiler link would be in Compiler Settings -> Toolchain executables [tab] -> C++ Compiler:

Edit: If you have to use C, C99 has <stdbool.h>, which basically makes true turn into 1, and false turn into 0. Otherwise you have to define it yourself.
Last edited on
I am using gcc, but it works. thanks
Topic archived. No new replies allowed.