This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: B19: gdb problem
- To: earnie_boyd at yahoo dot com
- Subject: Re: B19: gdb problem
- From: "Gilbert W. Pilz Jr" <gwpilz at pobox dot com>
- Date: Tue, 28 Apr 1998 14:49:32 -0700
- Cc: gnu-win32 at cygnus dot com
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".