cygwin32-b20 _tkinter problem

Robert Kern kernr at mail.ncifcrf.gov
Sun Apr 11 19:32:31 EDT 1999


Monika Göhmann wrote:
> 
> When I try to compile python-1.5.2b2 under WinNT with Cygwin32-B20 it
> works very well without Tk-Module. But when I try to include Tk, I get
> the following messages:
> 
> gcc   python.o \
>         ../libpython1.5.a -ltix4180 -ltk80 -ltcl80 -lstdc++     -lm
> -lm  -o python
> ../libpython1.5.a(_tkinter.o): In function `Tkapp_CreateFileHandler':
>         //c/temp/Python-1.5.2b2/Modules/./_tkinter.c:1459: undefined
> reference to `Tcl_CreateFileHandler'
> ../libpython1.5.a(_tkinter.o): In function `Tkapp_DeleteFileHandler':
>         //c/temp/Python-1.5.2b2/Modules/./_tkinter.c:1486: undefined
> reference to `Tcl_DeleteFileHandler'
> ../libpython1.5.a(_tkinter.o): In function `EventHook':
>         //c/temp/Python-1.5.2b2/Modules/./_tkinter.c:1913: undefined
> reference to `Tcl_CreateFileHandler'
>         //c/temp/Python-1.5.2b2/Modules/./_tkinter.c:1943: undefined
> reference to `Tcl_DeleteFileHandler'
> collect2: ld returned 1 exit status
> make[1]: *** [link] Error 1
> make: *** [python] Error 2

Add -lexpect526 to the command line.  Those symbols are only defined in
libexpect526.a of the cygwin B20.1 distribution.

Hope that helps.

[snip]

-- 
Robert Kern           |
----------------------|"In the fields of Hell where the grass grows high
This space            | Are the graves of dreams allowed to die."
intentionally         |           - Richard Harter
left blank.           |




More information about the Python-list mailing list