Sujet : Re: "A diagram of C23 basic types"
De : janis_papanagnou+ng (at) *nospam* hotmail.com (Janis Papanagnou)
Groupes : comp.lang.cDate : 03. Apr 2025, 22:39:00
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vsmv5l$1mod5$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
On 03.04.2025 16:58, David Brown wrote:
[...]
I know people can use pre-processor conditional compilation based on
__STDC_VERSION__ to complain if code is compiled with an unexpected or
unsupported standard, but few people outside of library header authors
actually do that. I'd really like :
#pragma STDC VERSION C17
to force the compiler to use the equivalent of "-std=c17
-pedantic-errors" in gcc.
(I understand the wish to have that #pragma supported.)
Can there be linking problems when different "C" modules have
been compiled with different '-std=cXX' or '#pragma STDC ...'
settings? - The question just occurred to me.
Janis