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
Try #define __GNU_SOURCE as first line in your sources.
#define __GNU_SOURCE