Trouble-shooting for undefined reference to xx

link path and sequence

  1. The path specified by -L options, then

  2. The path defined by LIBRARY_PATH, then

  3. The path specified by /etc/ld.so.conf, then

  4. /lib and /usr/lib or lib64 and /usr/lib64

dynamic lib path

  1. The path specified by ld -rpath, then

  2. The path specified by ld, then

  3. The path defined by LD_LIBRARY_PATH, then

  4. /lib and /usr/lib or /lib64 and /usr/lib64

posted @ 2018-12-27 14:48  redstar9451  阅读(57)  评论(0编辑  收藏  举报