From: gwpilz@pobox.com (Gilbert W. Pilz Jr)
Subject: Re: B19: gdb problem
28 Apr 1998 23:24:29 -0700
Sender: root@cygnus.com
Message-ID: <3.0.32.19980428144500.00ed39b0.cygnus.gnu-win32@mail.scruznet.com>
To: earnie_boyd@yahoo.com
Cc: gnu-win32@cygnus.com
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
gwpilz@pobox.com
www.scruz.net/~gwpilz/
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
