What happens if you just try gcc test.c -o test /usr/lib/ast/mod/quad.so