Where is sys/types.h located?

前端 未结 5 1267
别跟我提以往
别跟我提以往 2021-01-30 09:37

I just found out that the and headers are located in the /usr/include folder in Ubuntu server, but I don\

5条回答
  •  故里飘歌
    2021-01-30 10:16

    The file sys/types.h is located at the /usr/include/sys/types.h

    if u get this kind of Fatal Error:

    .../linux/linux_types.h:146:38: fatal error: /usr/include/sys/types.h: No
    such file or directory
    

    Fix by using the following code:

    sudo apt-get install build-essential flex libelf-dev libc6-dev-amd64 binutils-dev libdwarf-dev
    

提交回复
热议问题