I think you need to add -ldl: gcc -o doc7 doc7.c s7.o -lm -I. -ldl The default gcc version of s7 now includes the dynamic loader, but I (of course) forgot to check the documentation examples. I need to find a way to extract those examples and run them during my huge regression test suite. Thanks for the bug report!