Hi i need help on using dlfcn

im trying to implement dynamic loading of libraries into my skills.
but im having a problem whenever i compile a simple program that has dlopen("",RTLD_LAZY); in it it says undefined reference to dlopen

i even narrowed it to this

1
2
3
4
5
6
#include <dlfcn.h>

int main(int arg, char ** args){
 dlopen("",RTLD_LAZY);
 return 0;
}


just to try if something in my code is wrong.
im just compiling it im not running it

by the way im using fedora x86_64 platform and my g++ compiler came from the default repositories

please help
i found the solution using -ldl option in g++ but i want to know why netbeans doesnt perform -ldl option
Topic archived. No new replies allowed.