Hi,
I am using keil uVision4. When i compile a keil project for STM32F10x controller it is showing the error :-error : Unknown type name "uint8_t" .In my project files the header "stdint.h" is not included. After including the header the error disappears. I would like to know is it possible to include the header to all files in the project with out using the "#include<stdint.h>" statement. By using compiler flags or something like that. So that i can avoid including the header to all the files.
Thanks and regards, Shiju
You either use recursive include as already suggested.
Or you add the include in every source file.
Any solution where the compiler would add "hidden" includes would be a bad solution, because it would be a tool-specific solution. You want editors that has source code analyzing functionality, source code documenters (like Doxygen), lint tools etc to be able to process the source files without failing to know about any secret extra header files being required.