delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2021/06/26/14:16:15

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp AT delorie DOT com
ARC-Seal: i=1; a=rsa-sha256; t=1624731362; cv=none;
d=zohomail.com; s=zohoarc;
b=GrnCmsPoMkHUSFbAAjPuP1mfY4PNbQjX/I+PFSdAw0Fl+Jio6k1qCJBo15QJpycYkD03kgKFTVc2KmTaJ99Phddd7hu1HEmU6ckaksJjNzD74JkAdt9vSBUNKo7kyt8UbCA0XLyZsFgfA/hXIdyK5PtKER27VQRL+b1I7jLyLhk=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc;
t=1624731362; h=Content-Type:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To;
bh=cyLXW3ePmGBkP5M8HfOnbvKR4fVnIXQ2/xzfcp5jhDQ=;
b=asf7EmPp0zwtu2yy5PYkDcRH/NxSdjuciEYT/csW5tqhd8fz9MonNLaY8vbI2dSoh8XW84o+SXi5gZT/o39chatrBJ+UIaUNeMCuvCz1yikd5hKO9qaHdh1Sa+W3354OnMpntxYVUTIpRBbgAUNDs7t59ryNYRBhD8bSkOY9mi8=
ARC-Authentication-Results: i=1; mx.zohomail.com;
dkim=pass header.i=zoho.com;
spf=pass smtp.mailfrom=dufresnep AT zoho DOT com;
dmarc=pass header.from=<dufresnep AT zoho DOT com>
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
s=zapps768; d=zoho.com;
h=date:from:to:cc:message-id:in-reply-to:references:subject:mime-version:content-type:user-agent;
b=oGeecC3Kt+mJ7mODyFLAp6fAfLGwOI897OcH4wOEqvA0SAbl8tAN3o7AMvIgJhXTC/4pcd9kJBvN
TrUT0gVzJldhLEo68B+uWScvXnUI1l8eM0fe1mH9+uA2HUws9FJa
X-Original-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1624731362;
s=zm2020; d=zoho.com; i=dufresnep AT zoho DOT com;
h=Date:From:To:Cc:Message-Id:In-Reply-To:References:Subject:MIME-Version:Content-Type;
bh=cyLXW3ePmGBkP5M8HfOnbvKR4fVnIXQ2/xzfcp5jhDQ=;
b=pfhZSZalTDWExu1CY2E8Pd37z275Zci7FcQ6ogI19Yw0YLigNt0vlIrOPeD/4LMv
Nid02p+c+D3G4u8v31XSgTJ0sCf8UCdXAOLFVF89qscbxlgojinfKt08Gj4pUbHkrgA
Pai/1NEbl9Q6JiZCvYbixrT3IDSF5LjDi32yW9Tg=
Date: Sat, 26 Jun 2021 14:15:56 -0400
From: "Paul Dufresne (dufresnep AT zoho DOT com) [via djgpp AT delorie DOT com]" <djgpp AT delorie DOT com>
To: "djgpp" <djgpp AT delorie DOT com>
Cc: "freedos-devel" <freedos-devel AT lists DOT sourceforge DOT net>
Message-Id: <17a49890ca6.123f188ed46443.7177863653080197011@zoho.com>
In-Reply-To: <17a30b8508b.eceb84066270.6146636058200994488@zoho.com>
References: <17a309c6725 DOT ee2b33335838 DOT 5210672258564129766 AT zoho DOT com> <CAN1+P_3bouS5PbTdc6jJBKW=zdabEE2-zy5c1F=jR+F+3Tz0eA AT mail DOT gmail DOT com> <17a30b8508b DOT eceb84066270 DOT 6146636058200994488 AT zoho DOT com>
Subject: Re: Allegro library would need to be recompiled with -fgnu89-inline
?
MIME-Version: 1.0
Importance: Medium
User-Agent: Zoho Mail
X-Mailer: Zoho Mail
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

------=_Part_129204_1685152848.1624731356326
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit

Ok I did encounter again a multiple definition error with ld (linking) in a different project today.



The idea seems that if you have multiple files that include some.h, and in it you have functions or

variables not using the static keyword (at least for C), then they will be defined as global, and so,

they will be define each time some.h is included. Making multiple declarations at linking time errors.



Somehow, it seems it is more a problem with gcc 10 (or the linker associated with it) than in previous

versions... not clear how much recent it is.



Did not check how much it apply to Allegro.
------=_Part_129204_1685152848.1624731356326
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head>=
<meta content=3D"text/html;charset=3DUTF-8" http-equiv=3D"Content-Type"></h=
ead><body ><div style=3D"font-family: Verdana, Arial, Helvetica, sans-serif=
; font-size: 10pt;"><div>Ok I did encounter again a multiple definition err=
or with ld (linking) in a different project today.<br></div><div><br></div>=
<div>The idea seems that if you have multiple files that include some.h, an=
d in it you have functions or<br></div><div>variables not using the static =
keyword (at least for C), then they will be defined as global, and so,<br><=
/div><div>they will be define each time some.h is included. Making multiple=
 declarations at linking time errors.<br></div><div><br></div><div>Somehow,=
 it seems it is more a problem with gcc 10 (or the linker associated with i=
t) than in previous<br></div><div>versions... not clear how much recent it =
is.<br></div><div><br></div><div>Did not check how much it apply to Allegro=
.<br></div><div><br></div><div><br></div></div><br></body></html>
------=_Part_129204_1685152848.1624731356326--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019