Home
| Calendar
| Mail Lists
| List Archives
| Desktop SIG
| Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU |
Tom Guilderson wrote: > > 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. Try 'ldconfig -v'. This will reread /etc/ld.so.conf, which should be read on boot, but you never do dunno, and sometimes you don't. Ron Peterson rpeterson at yellowbank.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).
BLU is a member of BostonUserGroups | |
We also thank MIT for the use of their facilities. |