Subject: Re: B19: gdb problem
From: [email-masked] (Gilbert W. Pilz Jr)

28 Apr 1998 23:24:29 -0700
Sender: [email-masked]
Message-ID: <[email-masked]>
To: [email-masked]
Cc: [email-masked]
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"

At 06:12 AM 4/28/98 -0700, Earnie Boyd wrote:
>gcc -o loopy.exe main.o profile.o -lc

If you include the "-lc" you get:

I:\Cygnus\B19\H-i386-cygwin32\lib\gcc-lib\i386-cygwin32\2.7-B19\../../../../
i386
-cygwin32\lib/libcygwin.a(libccrt0.o)(.data+0x0):libccrt0.cc: multiple
definitio
n of `_impure_ptr'
I:\Cygnus\B19\H-i386-cygwin32\lib\gcc-lib\i386-cygwin32\2.7-B19\../../../../
i386
-cygwin32\lib/libc.a(impure.o)(.data+0x2ec):impure.c: first defined here

If you leave off the "-lc" it compiles. However, (and this is the important
point) the program *still* crashes before reaching main() when you run it
under gdb. If you don't run it under gdb it works fine.

Gilbert W. Pilz Jr.
Systems Software Consultant
[email-masked]
www.scruz.net/~gwpilz/
-
For help on using this list (especially unsubscribing), send a message to
"[email-masked]" with one line of text: "help".