Mail Archives: djgpp/1996/06/23/03:05:20
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 -