This is the error I get when I try to make the apue.3e source code from the book Advanced Programming on a Unix environment.
/lib -lapue -pthread -lrt -lbsd /usr/bin/ld: cannot find -lbsd collect2: error: ld returned 1 exit status make[1]: *** [badexit2] Error 1 make[1]: Leaving directory `/home/john/Documents/apue.3e/threads' make: *** [all] Error 1
I looked at similar errors that seemed to be absent in symbolic file links, but I cannot understand what -lbsd . When I try to change the directory to /usr/bin/ld , it does not exist. Is it assumed that -lbsd is in this directory, or that ld simply cannot find it? I tried to refrain from posting silly questions here, but I can no longer get stuck on this. Any help is appreciated.
source share