The docs are not synced with the addition of gcc_jit_context_add_driver_option, which allows linking. You can use: E.g. gcc_jit_context_add_driver_option(ctxt, "obj.o") or gcc_jit_context_add_driver_option(ctxt, "-L.") gcc_jit_context_add_driver_option(ctxt, "-lwhatever") for that. Regards,