// perlEmbedDynamic.c #include #include int main(int argc, char **argv) { void *handle; void (*theLibFunction)(); handle = dlopen ("libDynamicPerl.so", RTLD_LAZY); theLibFunction = dlsym(handle, "myPerlFunc"); (*theLibFunction)(); dlclose(handle); return(0); }