linux g++ undefined reference to `dlopen'类问题

main.cpp:(.text+0x19): undefined reference to `dlopen' main.cpp:(.text+0x22): undefined reference to `dlerror' main.cpp:(.text+0x62): undefined reference to `dlsym' 须要在编译时加上-ldl。 将原来的编译命令:g++ cfgfile.
相关文章
相关标签/搜索