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.
dlsym() — Obtain the address of a symbol from a dlopen() object.
Dynamically loaded (DL) libraries are libraries that are loaded at times other than during the startup of a program. They're particularly useful for implementing plugins or modules, because they permit waiting to load the plugin until it's needed.
The dlsym() function shall obtain the address of a symbol defined within an object made accessible through a dlopen() call. The handle argument is the value returned from a call to dlopen() (and which has not since been released via a call to dlclose()), and name is the symbol's name as a character string.
From the dlsym(3)
man page:
#include <dlfcn.h>
....
Link with -ldl.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With