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
If you're so lazy you could just include the include file into a header file that is included in all files included in your project.
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.
Thank you for the valuable suggestion.I am not lazy to include the files. Really wish to know if it is possible to include the header in some other way. Something like defining it in the preprocessor symbols.