guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: c99 support


From: Hans Åberg
Subject: Re: c99 support
Date: Fri, 29 Jun 2018 17:55:52 +0200

> On 29 Jun 2018, at 17:35, Chris Vine <address@hidden> wrote:
> 
> On Fri, 29 Jun 2018 12:34:07 +0200
> Hans Åberg <address@hidden> wrote:
>>> If, say, uint8_t is available in stdint.h for C, it
>>> will be available for C++.  §21.4.1/2 of C++17 makes this even more
>>> explicit: "The [cstdint] header defines all types and macros the
>>> same as the C standard library header <stdint.h>".
>> 
>> Which C version? In g++7, __STDC_VERSION__ is not defined, only __STDC__.
> 
> In C++17, references to "C" are to ISO/IEC 9899:2011.  References to the
> C standard library are to "the library described in Clause 7 of ISO/IEC
> 9899:2011".  In C++11 and C++14, the references are to ISO/IEC
> 9899:1999.  

Good.

> By default (if you don't use the -std=c++xx flag) g++-7
> compiles according to C++14.

I am using C++17. And gcc7 defaults to C11, so there is an incompatibility with 
the default g++ C version it seems.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]