????????????????????б???
gcc mytest.c -ldl -o mytest

????-ldl??????????????????????ù????

??????1??dlopen()

???????????????????????????????????????λ?ò????????????

??????????????LD_LIBRARY_PATH?г????÷?????????????

?????????/etc/ld.so.cache??????????б????ldconfig?????

????????usr/lib??

????????/lib??

?????????????

????????????????????δ??????

??????RTLD_NOW??????????е????к???????????

??????RTLD_LAZY???????????е?????????????????????dlsym()????????????

??????2??dlsym()

????????dlsym???????dlopen()??????????phandle?????????????????????????????????????????

??????3??dlerror()

?????ú???????????ù???????????????????

?????????????

?????????????????Linux????ù??????????????????????????????????