www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/06/23/03:05:20

Date: Sun, 23 Jun 1996 09:58:59 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: j DOT aldrich6 AT genie DOT com
Cc: djgpp AT delorie DOT com
Subject: Re: Problems with gcc 2-7-2
In-Reply-To: <199606202347.AA025784464@relay1.geis.com>
Message-Id: <Pine.SUN.3.91.960623095551.1039G-100000@is>
Mime-Version: 1.0

On Thu, 20 Jun 1996 j DOT aldrich6 AT genie DOT com wrote:

> This may be a little too obvious, but why not just declare the var as
> a pointer to int and malloc() the required space?  Seems finding an
> old version of ld and trying to make it work with v2 is the hard way
> to do things!  :)

Maybe a hard way, but sometimes inevitable.  The posted code was only a 
trivial example, the bug is still there and might bite you in less 
trivial situations when the `malloc' solution is not an option, at least 
not an easy one.

And btw, there is no problem in getting a v1.x ld.exe work with DJGPP 
v2.  Just replace your v2 ld.exe and make sure you got go32.exe somewhere 
on your PATH.  Works like a charm.

- Raw text -


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