Sujet : Re: else ladders practice
De : Keith.S.Thompson+u (at) *nospam* gmail.com (Keith Thompson)
Groupes : comp.lang.cDate : 25. Nov 2024, 21:51:48
Autres entêtes
Organisation : None to speak of
Message-ID : <87y117kpej.fsf@nosuchdomain.example.com>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
User-Agent : Gnus/5.13 (Gnus v5.13)
Bart <
bc@freeuk.com> writes:
[...]
So, if I install 5 distinct C compilers on Linux, will they each come
with their own stdio.h, or will they use the common one in
/usr/include?
History does not suggest that you actually care about the answer,
but I'll give you one anyway.
It depends on how each compiler is configured. On my system,
gcc, clang, and tcc all use /usr/include/stdio.h, but musl-gcc (a
wrapper that invokes gcc with options to use musl, an alternative
C library implementation). Or I can invoke any of those compilers
with options to use some other library implementation.
Remember that typical Linux-based systems are very modular, with system
files provided via the package manager. The files that make up a C
implementation are provided by multiple different package. Package
dependencies are managed in such a way that installing a full C
implementation is reasonably straightforward.
-- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.comvoid Void(void) { Void(); } /* The recursive call of the void */