delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/28/04:09:13

Organization:
Date: Wed, 28 May 1997 11:05:13 +0300 (EET DST)
From: KOMODakis Nikolaos <komod AT csd DOT uch DOT gr>
To: djgpp AT delorie DOT com
Cc: KOMODakis Nikolaos <komod AT csd DOT uch DOT gr>
Subject: djgpp bug
Message-Id: <Pine.SUN.3.96.970528105752.17268A-100000@dia.csd.uch.gr>
Mime-Version: 1.0

I have accidentally found the following bug in djgpp: 
If you declare the same global (not static) variable in two different C
files, the compiler doesn't tell you anything (not even a warning).
However, it allocates the same space for the two definitions.  

I guess that this is a problem of the COFF format (that djgpp uses) and
the way this format handles global variables. 

... Nick ... 

- Raw text -


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