Hello,i have a problem with the CS+ for CC IDE.I wanted to run some sample code by initializing a variable like uint8_t test = 5.Sadly, the IDE says that it can't find this datatype, even after the include of stddef.h.My error message reads: E0520020: Identifier "uint8_t" is undefinedI hope someone can explain to me where my error is.Thanks
uint8_t is NOT defined in stddef.h
uint8_t (and other uint definitions) are included in stdint.h
Would you mind telling us which compiler version you use? Have you checked stdint.h includes the definition you are looking for? Have you checked that the compiler can open the include file (e.g. by inserting…
Found the problem: The Standard of C language was set to C90 instead of C99 under Property -> Individual Compile Options -> C language.After switching to C99 and refreshing the project the error disappeared.