Where is the library for 'dlsym'

白昼怎懂夜的黑 提交于 2019-12-01 20:47:32

问题


I am getting this linker error:

system/core/libacc/tests/main.cpp:42: error: undefined reference to 'dlsym'

Can you please tell me where is the library on ubuntu 9.10 which contains the library for 'dlsym'?

Thank you.


回答1:


From the dlsym(3) man page:

#include <dlfcn.h>

  ....

Link with -ldl.


来源:https://stackoverflow.com/questions/2186219/where-is-the-library-for-dlsym

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!