Re: Can't find a usable init.tcl ... Tcl wasn't installed correctly



Patrick wrote:
Here is the code that is supposed to create and initialize an interpreter but instead prints the error message:

int status;

Does it help to call
Tcl_FindExecutable(argv[0]);
here?
tkinterp = Tcl_CreateInterp();
status = Tcl_Init(tkinterp);
if (status != TCL_OK) {
fprintf(
stderr,
"Tcl_Init failed. status: %d. result: %s\n",
status, tkinterp->result
);
exit(1);
}


Christian
.



Relevant Pages