I am trying to compile an example program that references a shared library created by Sundown . I compile the program as follows.
$ gcc -o sd sundown.c -L. -lsundown
However, when I run it, I get the following error.
./sd: error while loading shared libraries: libsundown.so: cannot open shared file object: No such file or directory
lsThere is a conclusion .
$ ls
libsundown.so libsundown.so.1 sundown.c sd
Why is the shared library not found ld?
user672118
source
share