Mail Archives: djgpp/1997/08/01/22:04:15
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 -