>>>>> dgp <[EMAIL PROTECTED]> writes: >> Thanks, I've added the following to my program and it seems to work >> correctly.
>> static void ensure_tcl_initialized (void) { [...] >> /* . */ >> } > That's fine, but a simple > Tcl_FindExecutable(NULL); > would work just as well. Thanks! > Going a bit further, > Tcl_FindExecutable(argv[0]); > in your main() would have the added benefit of making Tcl's [info > nameofexecutable] command return a correct result. Oh, it's probably not the case where I should modify main (). I'm actually trying to evaluate a proof of concept patch implementing the generic options facility [1] for GDAL [2]. There, I use Tcl to implement the prototype since it offers both a decent FFI and a string library, not to mention dictionary objects. [1] http://article.gmane.org/gmane.comp.gis.gdal.devel/14356 [2] http://www.gdal.org/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]