I have an application that compiled fine, but when I run it I get:
fatal: libfoo.so.2: can't open file: errno=2 or No such file or directory
You need to add -R<wherethelibraryis> to the link command line.
E.g.,:
cc -L/usr/dt/lib -L/usr/openwin/lib \
-R/usr/dt/lib -R/usr/openwin/lib \
xprog.c -lXm -lXt -lX11
Home | FAQ |