Re: problems compiling with R0.93
> When I try to compile my own "hello world" program I get these error
> gcc -g -o hello -L/usr/X11R6/lib hello.o -lXaw -lXt -lX11
> ld: Output file requires shared library `libc.so.4'
> gcc: Internal compiler error: program ld got fatal signal 6
> make: *** [hello] Error 1
> Compiling the program with:
> gcc -g -c hello.c
> works fine, but the linking part just won't work. It's funny because
> I've successfully compiled the 'xli' package on my machine. And I have
> checked, I do have the libc.so.4 library in the /lib directory.
The problem is that the shared X libraries need the shared libc but
the old, a.out gcc links in a static debug version of libc called libg
when -g is used. Either don't link with -g so the shared libc will be
used or add -static so the shared X libraries won't be used.
David Engel Optical Data Systems, Inc.
email@example.com 1101 E. Arapaho Road
(214) 234-6400 Richardson, TX 75081