Mail Archives: djgpp/2011/05/23/03:23:55
> From: Jim Michaels <jmichae3 AT yahoo DOT com>
> Newsgroups: comp.os.msdos.djgpp
> Date: Sun, 22 May 2011 21:45:37 -0700 (PDT)
>
> On May 22, 9:30 pm, Jim Michaels <jmich DOT DOT DOT AT yahoo DOT com> wrote:
> > I have a program and small library that I recently worked the bugs out
> > of to my best understanding.
> > I included a lot of debug output using #if defined(_DEBUG).
> > that debug ouput is flushed at every instance.
> > the library output shows with -g compiler switch, but not without.
> > the main program's debug output always shows.
> >
> > can someone explain this? I have the #define on in both the library
> > file and the main source and the header file.
> > I think I am running into a compiler bug.
> >
> > and this doesn't happen with mingw-w64 (a gnu compiler for windows).
>
> I should mention, the program throws a SIGSEGV or SIGILL if I execute
> the program my normal way (with debug symbols stripped out with -s)
> and only 1 argument is partially processed and dies as soon as it hits
> the library.
> with -g, works perfect.
Does the problem go away if you compile with another version of GCC,
but still in the DJGPP environment (as opposed to MinGW)?
- Raw text -