This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

problem with "bool" type

Hello,
I have used an example project as a base for my project(SysTick for STM32Discovery). I wrote some additional code using some variable of boolean type. Compiler doesnt show any errors in this project. Then I wanted to create the same project outside of the example folder. I have copied all the files into new project's folder, I have also set the same setting of Flash tool configuration, but the compiler writes an error :
#20: identifier "bool" is undefined or error: #20: identifier "TRUE" is undefined
Could anybody help me or tell what is wrong? Is there some kind of settings for compiler that it would recognize boolean type?
Thanks for reply

Parents
  • OK, problem solved =) I have copied wrong version of "stm32f10x.h" into new project. Anyway I don't understand why boolean type is defined in older version (3.3) but not in the newer one (3.4). In the new version it has to be probably defined manually.

Reply
  • OK, problem solved =) I have copied wrong version of "stm32f10x.h" into new project. Anyway I don't understand why boolean type is defined in older version (3.3) but not in the newer one (3.4). In the new version it has to be probably defined manually.

Children