tags:

views:

49

answers:

2

I have a couple tcl interpreters on my system and i'd like to pick which one the C API for tcl uses. Is there a way to do this?

Thanks!

+2  A: 

The C api doesn't pick the interpreter, you pick the C api corresponding to the interpreter you wish to use, by changing the include and link paths.

mikerobi
+1  A: 

You pass the interpreter to the C API, for example TclEval's interface is:

int Tcl_Eval([Tcl_Interp][3] *interp, const char *script)
Trey Jackson