我正在尝试编译使用libdl库中的API的示例代码:#include <stdlib.h>main(int argcruntime the shared libraries from the glibc version used for linking
在google之后,因为我试图静态编译它,所以我可以在lib目录中找到libdl.a
/src/cppunit/.libs/libcppunit.so: undefined reference to `dlclose'ubuntu@domU-12-31-39-0A-98-1A:~/cppunit$ ls /lib/i386-linux-gnu/libdl*
/lib/i386-linux-gnu/libdl-2.15.so /lib
System.DllNotFoundException: Unable to load shared library 'libdl.so' or one of its dependencies.在检查我的系统时,如果该文件实际上与sudo find / -iname libdl.so一起存在,则找不到该文件。但是,在/usr/lib/i386-linux-gnu和/usr/lib/x86_64-linux-gnu中,我可以找到一个libdl.so.2文