I\'m trying to compile a C program but I get the error \'RTLD_NEXT\' undeclared. I think this is supposed to be defined in dlfcn.h which the c program includes, but when I
According to man dlsym it is #define _GNU_SOURCE (just one leading underscore) before the dlfcn.h is included. (RHEL6.1).
man dlsym
#define _GNU_SOURCE
dlfcn.h