Re: acme-client: prevent duplicate definitions of global variables

2020-02-07 Thread Florian Obser
committed, thanks! On Sat, Feb 01, 2020 at 01:54:11PM +0100, Jeremie Courreges-Anglas wrote: > On Fri, Jan 31 2020, Michael Forney wrote: > > Every source file that includes extern.h will have its own definition > > of these variables. Since many compilers allocate the variables with > > .comm, t

Re: acme-client: prevent duplicate definitions of global variables

2020-02-01 Thread Jeremie Courreges-Anglas
On Fri, Jan 31 2020, Michael Forney wrote: > Every source file that includes extern.h will have its own definition > of these variables. Since many compilers allocate the variables with > .comm, they end up getting merged by the linker without error. > However, ISO C requires exactly one definitio

acme-client: prevent duplicate definitions of global variables

2020-01-31 Thread Michael Forney
Every source file that includes extern.h will have its own definition of these variables. Since many compilers allocate the variables with .comm, they end up getting merged by the linker without error. However, ISO C requires exactly one definition of objects with external linkage. gcc 10 will ena