Xref: news2.mv.net comp.os.msdos.djgpp:5270 From: norup AT aauobs DOT obs DOT aau DOT dk (Anton Norup Soerensen) Newsgroups: comp.os.msdos.djgpp Subject: djgpp crashes when compiling this Date: 22 Jun 1996 16:38:34 GMT Organization: DAIMI, Computer Science Dept. at Aarhus University Lines: 24 Distribution: world Message-ID: <4qh7ia$qca@gjallar.daimi.aau.dk> Reply-To: norup AT obs DOT aau DOT dk NNTP-Posting-Host: aauobs.obs.aau.dk To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp 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 AT astro DOT ku DOT dk