Trouble-shooting for undefined reference to xx
link path and sequence
-
The path specified by -L options, then
-
The path defined by LIBRARY_PATH, then
-
The path specified by /etc/ld.so.conf, then
-
/lib and /usr/lib
orlib64 and /usr/lib64
dynamic lib path
-
The path specified by
ld -rpath
, then -
The path specified by ld, then
-
The path defined by LD_LIBRARY_PATH, then
-
/lib and /usr/lib
or/lib64 and /usr/lib64