[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Debugging information/libc.so.4

>    Hi, I'm having a little trouble with a program I'm working on, and I'd 
>    like to use gdb to see what's going on, but when I try to include debug 
>    information at compilation time I get:
>    $ gcc -o lentes -g Lentes.c graphics.c -lm
>    ld: Output file requires shared library `libc.so.4'
>    gcc: Internal compiler error: program ld got fatal signal 6
> This seems to be a bug in the linux gcc implementation -- actually
> somewhere in the linking/loading.  If you need debugging, do the
> following:
> 	gcc -c -g stuff.c
> 	gcc -o lentes stuff.o ... -lm

or: gcc -static -o lentes stuff.o

I'm not sure which is 'proper', but the -static method is what I've used 
for a while now with gcc 2.6.3.

Reply to: