This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: B19: gdb problem


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".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]