- * Returns name of result, or NULL (and fills in errmsg). */
-char *compile_and_link(const void *ctx, const char *cfile, const char *objs,
- const char *extra_cflags, const char *libs,
- char **errmsg)
+ * Returns error message or NULL on success. */
+char *compile_and_link(const void *ctx, const char *cfile, const char *ccandir,
+ const char *objs, const char *extra_cflags,
+ const char *libs, const char *outfile)