#include #include int main() { void *handle = dlopen("/usr/lib/libglapi.so", RTLD_LOCAL | RTLD_NOW); if (!handle) { printf("dlopen failed with message '%s'\n", dlerror()); } }