Article View: gnu.gcc.help
Article #42375lib.so problems
From: Andrew W. Sudbury
Date: Fri, 15 Dec 1995 00:00
Date: Fri, 15 Dec 1995 00:00
39 lines
1924 bytes
1924 bytes
-----BEGIN PGP SIGNED MESSAGE-----
*Please email me directly (along with any choice commemnts regarding the FAQ or posting to the wrong group, etc), Thank you very much*
andrew@cafeliberty.com
I have not had a great deal of experience with gcc, so I might be asking for
the answer to a terribly obvious problem. What I am trying to do is issue this
command:
gcc -I/usr/include/tcl/ -L/usr/X11/lib/ -L/lib/ Foolink.c Fwm_Init.o
-lX11 -ltcl -ltk
the comiler (well ld) then chokes with:
ld: Output file requires shared library `libX11.so.6'
gcc: Internal compiler error: program ld got fatal signal 6
Now I have libX11.so.6 (& libtcl.so.3, etc.) in -both- /usr/X11/lib and /lib.
As I thought I understood it, the -lX11 covers all that, is there some explict
thing I have to do to get a .so. to link, the gcc man page did not seem to
suggest such a thing, and I don't have more docs. I assume that there is
some stupid thing that I am missing. Unfortunatly I have not compiled
anything other then the kernel and some standard stuff in Linux or on this
machine.
Thanks for any help, andy
-----BEGIN PGP SIGNATURE-----
Version: 2.6.2
Comment: Processed by Mailcrypt 3.3, an Emacs/PGP interface
iQCVAwUBMNF9w8bo3lfkITQNAQFoWQP/b1U92+gvBsmc9/uw9/i4//lMgk/IBWev
SQWji7vovzPG3UpVRFYRNhKi0f8KqiGPr2dMaFU7AEKtV5y3IIcz6c4qm6bdhvTT
aVDyTBSvWiiDXN9Ji1kQvSL8gKbksdmLeuB7/+aWSEKb63DxzzXai9ZmLljCOmD+
AoFkLoyim0s=
=cp8k
-----END PGP SIGNATURE-----
Technical Details
Message-ID:
<199512151353.IAA01309@hell.cafeliberty.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,f6324a040313e823,start X-Google-Attributes: gid11318c,public From: andrew@hell.cafeliberty.com (Andrew W. Sudbury) Subject: lib.so problems Date: 1995/12/15 Message-ID: <199512151353.IAA01309@hell.cafeliberty.com> X-Deja-AN: 121954556 distribution: gnu sender: daemon@cis.ohio-state.edu organization: GNUs Not Usenet newsgroups: gnu.gcc.help