Re: X11 lib links
On Mon, 2005-02-28 at 13:50 +0100, Jan Nordholz wrote:
> > Okay, maybe I'm not quite awake today but how come if I have
> > said file
> > $ ls -lt $PWD/libX11.so.6.2
> > -rw-r--r-- 1 root root 813680 Dec 15 19:18 /usr/X11R6/lib/libX11.so.6.2
> >
> > that this fails:
> > $ ifort -O -o cmpfil cmpfil.f -L/usr/X11R6/lib -lX11
> > ld: cannot find -lX11
> >
> Hi Michael,
>
> make sure that there's also /usr/X11R6/lib/libX11.so (should be
> a symlink to the actual library) - _that's_ the name ld is
> looking for (or .a, if you're linking statically - I don't know
> about ifort and what options it passes to the linker).
Aha - for some reason the setup was
b$ ls -lt libX11*
lrwxrwxrwx 1 root root 13 Feb 10 10:54 libX11.so.6 -> libX11.so.6.2
-rw-r--r-- 1 root root 813680 Dec 15 19:18 libX11.so.6.2
is no link from libX11.so
After adding sym link myself it seems to pick up -lX11 no probs.
However, it now cannot get -lXext presumably since there is no
libXext.so link to the actual files...
this sounds like, somehow, the whole of X11R6/lib is incorrectly set up
any suggestions as to how come and how to sort it out (as far as I can
recall (but how to double chk?) I've not messed with this dir at all....
cheers, Michael
Reply to: