Index: tkWindow.c ================================================================== --- tkWindow.c +++ tkWindow.c @@ -179,10 +179,14 @@ append msg \"need to\\ninstall CTk or set your CTK_LIBRARY \"\n\ append msg \"environment variable?\"\n\ error $msg\n\ }"; int retval; + +#ifdef USE_TCL_STUBS + Tcl_InitStubs(interp, "8", 0); +#endif #ifdef USE_TCL_STUBS winPtr = Tk_CreateMainWindow(interp, NULL, "ctk", "ctk"); if (winPtr == NULL) { return(TCL_ERROR);