I'm using the following function in my spike-webserver:
object compileit(string file, void|int quiet) { object prog; if (!quiet) log("Compiling %s", file); if (mixed err = catch(prog = compile_file(file)())) log(LOG_ERR, "Compile error %s", describe_backtrace(err)); return prog; }
in order to compile modules. I'd like two things though, which currently don't quite work as I had hoped:
a. When there is a compilation problem, I get a backtrace here, but it does not reveal what compilation error occurred (it does not show line number and diagnostics). Any suggestions how to get those?
b. I'd like a (list of) custom library directories which I want to include in the namespace, without having to specify them on the commandline using -L options. How can this be accomplished?