Mail Archives: djgpp/1999/09/01/13:10:32
Problem solved! Thanks Eli, who told me about symify, and thanks
Michael, who shared his identical experience, and the solution:
From: Michael Bukin <M DOT A DOT Bukin AT inp DOT nsk DOT su>
Date: 01 Sep 1999 21:13:35 +0700
I recall that I had similar problem while porting one application.
Implementation of malloc in djgpp-2.02 defines global array "freelist"
which keeps some internal state of malloc. If you have the same
global symbol in your code, your program may crash when malloc
dereference this array.
One solution is to replace all references to global symbol "freelist"
in your code with something else, or make "freelist" static. If you
don't have global symbol "freelist", then, IIRC, there are other
global symbols defined in malloc.
- Raw text -