gcl-devel
[Top][All Lists]
Advanced

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

Re: [Gcl-devel] gcl compilation with gcc 6.2.1 20161209


From: Gabriel Dos Reis
Subject: Re: [Gcl-devel] gcl compilation with gcc 6.2.1 20161209
Date: Wed, 28 Dec 2016 15:14:56 -0800

GCC defaults to C11.
Clang defaults to C11.
G++ defaults to C++14
Clang defaults to C++14
MSVC (if you're interested) defaults to C++14.

On Wed, Dec 28, 2016 at 2:27 PM, Camm Maguire <address@hidden> wrote:
Greetings, and thanks for your report!

Perhaps you could enlighten me as to the default std policy of the
various compiler versions.  I have 6.2.1 on Debian unstable as well
(working) and recall the inline standard changing some time ago, but it
is apparently not c11.  c11 does not work on many fronts, including such
items as the lack of definition of PATH_MAX, etc.  Doubtless it can be
made to work, but I only have time right now for the working gcc
default.  Suggestions?

Take care,

Wolfgang Brehm <address@hidden> writes:

> The problem is due to different behavior of extern and inline in the c89 and c11 standards.
> Compiling with gcc -std=gnu89 will lead to an successful build.
> Do you want me to try to change the function definitions to conform to the c11 standard or should the project stay at c89? In the latter case
> simply adding -std=gnu89 to the compiler flags in the configure script is sufficient.
> ​
>
> _______________________________________________
> Gcl-devel mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/gcl-devel

--
Camm Maguire                                        address@hidden
==========================================================================
"The earth is but one country, and mankind its citizens."  --  Baha'u'llah


_______________________________________________
Gcl-devel mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/gcl-devel


reply via email to

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