#include #include int main() { void *addr; int (*fp)(); addr = dlopen("./first", RTLD_LAZY); if (!addr) { printf("ERROR: dlopen(\"./first\"): %s\n", dlerror()); exit(1); } fp = dlsym(addr, "first"); (*fp)(); dlclose(addr); return(0); }