I am trying to use dlopen() and dlsym() in my code and compile it with gcc.
dlopen()
dlsym()
gcc
Here is the first file.
/* main.c
The compiler only "tries to help", so you have to use two typecasts:
#include void (*func)() = (void (*)())(intptr_t)dlsym(handle, "func");