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

STM32F103-- sys/types.h no such file or direcory

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

Parents
  • Hi,

    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.

Reply
  • Hi,

    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.

Children