Mail Archives: djgpp/1997/11/30/15:49:21
Troy D Van Horn wrote:
>
> I just tried today to compile zlib 1.04 with djgpp, and when I
> try to run the example programs, EXAMPLE.EXE, and MINIGZIP.EXE, my
> computer just locks up. I used the default makefile for djgpp
> (MAKEFILE.DJ2), and them modified it slightly (changed optimizations to
> -O2 -fomit-frame-pointer), and the result is the same. I haven't had time
> yet to try to write my own program using the library yet, I have yet to
> figure out the limited documentation.
> Does anybody have any idea why the examples don't work?
Are you sure they've locked up and aren't expecting input from stdin?
Try typing and see what happens. I didn't have any problems with zlib
1.04, but I don't remember if I tried the examples, I just used minigzip
to find out how to use the lib.
Bill
--
Leave others their otherness
things"
This problem occurs inside a class which has several data members which
are contained by pointer (some are pointers, some are arrays, some are
arrays of pointers). Within the constructor of the class, many of these
are instantiated using new commands, the remainder are initialised as
NULL. Others are instantiated within one of the class's member functions
(which is not called during the construction process).
The problem is that one time (not necessarily the first, but certainly
the last) when this member function is called the data member is
constructed correctly, however during this process, one of the other data
members becomes "corrupted."
- Raw text -