I have a library I created,
mylib.c:
#include int testlib() { printf(\"Hello world\\n\"); return (0); }
Try:
extern int testlib(void);