shared libraries
Tom Guilderson
TWGuilderson at cvs.com
Mon Apr 10 20:59:03 EDT 2000
I have been trying to do some X windows programming. When i try
to link against libX11 etc. I get errors such as the following:
[TWGuilderson at linux1 mofif]gcc -o label label.c -lX11 -lXm
/usr/bin/ld: cannot open -lX11: No such file or directory
collect2: ld returned 1 exit status
This is my /etc/ld.so.conf file which I have run ldconfig against
to insure the ld.so.cache is up to date
/usr/X11R6/lib/
/usr/lib/
/usr/-486-linux-libc5/lib/
/usr/lib/qt-2.0.1/lib/
/usr/lib/qt-1.44/lib/
/usr/lesstif/lib/
If I run ldconfig -p I see libX11.so under /usr/X11R6/lib as well
as libXm for motif under /usr/lesstif/lib.
If I am only linking against one of the libraries such as libX11
I can pass the
-L option such as
-L/usr/X11R6/lib/ -lX11
and ld will find libX11. the problem is if I need libX11 and
another library in another directory. does anyone have any
ideas. Has anyone else run into anything like this.
System is Redhat 6.1 on Intel, kernel 2.2.12-20
If anyone can offer any help it will be greatly appreciated.
--
Tom Guilderson
Applied Technology Team
401-770-3913
mailto:TWGuilderson at cvs.com
-
Subcription/unsubscription/info requests: send e-mail with
"subscribe", "unsubscribe", or "info" on the first line of the
message body to discuss-request at blu.org (Subject line is ignored).
More information about the Discuss
mailing list