Skip to content

Instantly share code, notes, and snippets.

@schmurfy
Created November 20, 2010 16:23
Show Gist options
  • Save schmurfy/707931 to your computer and use it in GitHub Desktop.
Save schmurfy/707931 to your computer and use it in GitHub Desktop.
check_lua.c
#include <dlfcn.h>
#include <stdio.h>
int main (int argc, char const *argv[])
{
void *module;
printf("started\n");
module = dlopen("/Users/schmurfy/Dev/personal/collectd/test_install/lib/collectd/lua.so", RTLD_NOW);
if( module == NULL ){
const char *error = dlerror();
printf("error: %s\n", error);
}
printf("completed");
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment