Why is stddef.h not in /usr/include?

前端 未结 3 1291
难免孤独
难免孤独 2021-01-18 02:48

I have compiled the gnu standard library and installed it in $GLIBC_INST.

Now, I try to compile a very simple programm (using only one #include

3条回答
  •  星月不相逢
    2021-01-18 03:21

    That's because files under /usr/include are common headers that provided by the C library, for example, glibc, while the files at /usr/lib/gcc are specific for that particular compiler. It is common that each compiler has their own different implementation of stddef.h, but they will use the same stdio.h when links to the installed C library.

提交回复
热议问题