delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/01/22:04:15

From: "A. Sinan Unur" <asu1 AT cornell DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: DJGPP hates me!
Date: Fri, 01 Aug 1997 08:22:52 -0400
Organization: Cornell University
Lines: 20
Sender: asu1 AT cornell DOT edu (Verified)
Message-ID: <33E1D51C.5547@cornell.edu>
References: <01bc0e28$5aea0c60$7b7106c2 AT po DOT white2> <33E16046 DOT 3A68 AT mail DOT coos DOT or DOT us>
Reply-To: asu1 AT cornell DOT edu
NNTP-Posting-Host: 128
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Jason Dagit wrote:
> 
> Peter White wrote:
> >
> > The second problem is with my script language module, which at the moment
> > compiles fine, but refuses to run. I've tried to use a debugger with it,
> > but the program exits with a page fault _before_ it gets to main! This
> > program was working until I made it slightly more complicated.
> 
> Did you use -O3 to compile it?  I used it once to compile a small
> program I was making and the program wouldn't run, but if I compiled it
> with -O2 or less then it worked.  I ran stubify on the program and
> suddenly it worked just fine.  So that is what I suggest, I don't know
> what side effects could come from doing that but it might work :)

this is usually means there is a memory related bug in your program. if
i remember correctly, a similar situation is included in the comp.lang.c
FAQ although i cannot recall the reference right now.

  -- Sinan

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019