I am having trouble compiling a piece of source code using djgpp 2.0,
as it results in a "general protection fault".
The code is rather simple: Room for an array of a structure is allocated,
and values are assigned to the array.
The smallest version of the code that crashes is about 32kb, so I have not
posted it here. To take a look at it, use anonymous ftp to
"aauobs.obs.aau.dk" cd to "/pub/norup/djgpp" and get "crash.zip"
It compiles and runs nicely under Borland C 3.1 and compiles under Linux gcc.
The crash seems to be associated with the size of the array: similar, smaller
arrays are accepted without problems, and if the last four structures
from (object[id].facet+82)-> are commented out, it compiles without
crashing.
I would really appreciate if this problem with djgpp would be looked into,
or perhaps just a work-around could be found.
Thanks,
Anton Norup Soerensen
norup@astro.ku.dk