Newbie Error? Compiling _tkinter from Source on Win32

Fredrik Lundh fredrik at pythonware.com
Thu Feb 22 15:57:52 CET 2001


Chris Withers wrote:
> > --------------------Configuration: _tkinter - Win32 Release--------------------
> > Compiling...
> > _tkinter.c
> > E:\Python-2.0\Modules\_tkinter.c(44) : fatal error C1083:
> > Cannot open include file: 'tcl.h': No such file or directory
> > tkappinit.c
> > E:\Python-2.0\Modules\tkappinit.c(15) : fatal error C1083:
> > Cannot open include file: 'tcl.h': No such file or directory
> > Error executing cl.exe.
> >
> > _tkinter.pyd - 2 error(s), 0 warning(s)
>
> Any ideas what I'm doing wrong?

Does "newbie" mean C newbie?  The error message pretty much
means what it says: the compiler cannot find and open that file.

Make sure you have tcl.h somewhere, and check the compiler's
include settings.

(iirc, the distributed build file expects to find the Tcl/Tk include
files in "<python-sources>\..\tcl\include")

Cheers /F





More information about the Python-list mailing list