Hi,
I'm compiling STM32F103 code and I'm getting following error
..\1\platform\syscalls.c(13): error: #5: cannot open source input file "sys/types.h": No such file or directory
sys/types.h ,<sys/stat.h> ,<unistd.h> are these compiler related file?
Which file i have to include in path or what changes I have to make in compiler? I checked while changing compiler also but not works.
thanks
More of a POSIX thing. Consider not including them, and use something more Embedded/Keil suited.
Suppose I installed keil IDE on Linux system will it give errors.
Simply in Linux system i created c file and included sys/types.h, sys/stat.h ,unistd.h header files and compile using gcc command didn't show me error. So as these are posix related things so is it possible if I installed keil and it will work.
For my application I cant't remove those files. Cause I'm calling these header files in lots of file. What should be should be solution for it?
Thanks.
You could start by trying to understand that your embedded microcontroller is not running Linux, so things you got used to on Linux simply don't apply there.
So create the files in a sys directory off your inc directory with some equivalent content, or enough to keep the tool chain happy. Better yet understand what defines/prototypes it's actually using