Re: X11 lib links
> 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).
If the file is present indeed, you can only try
strace -eopen -f ifort ... 2> ifort.strace
grep "libX11\." ifort.strace
to see where ld actually searches, and why it fails.
Regards,
Jan
PS: Sorry for the direct reply, Michael... forgot to update the
To:-field.
--
DSL Komplett von GMX +++ Supergünstig und stressfrei einsteigen!
AKTION "Kein Einrichtungspreis" nutzen: http://www.gmx.net/de/go/dsl
Reply to: