From: MGoehmann at t-online.de (Monika G�hmann) Date: Sun, 11 Apr 1999 10:33:19 GMT Subject: cygwin32-b20 _tkinter problem Message-ID: <371071b0.15953469@news.btx.dtag.de> Content-Length: 2414 X-UID: 930 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 My Modules/Setup looks like this # *** Always uncomment this (leave the leading underscore in!): _tkinter _tkinter.c tkappinit.c -DWITH_APPINIT \ # *** Uncomment and edit to reflect where your Tcl/Tk headers are: # -I/usr/local/include \ # *** Uncomment and edit to reflect where your X11 header files are: # -I/usr/X11R6/include \ # *** Or uncomment this for Solaris: # -I/usr/openwin/include \ # *** Uncomment and edit for Tix extension only: -DWITH_TIX -ltix4180 \ # *** Uncomment and edit for BLT extension only: # -DWITH_BLT -I/usr/local/blt/blt8.0-unoff/include -lBLT8.0 \ # *** Uncomment and edit for PIL (TkImaging) extension only: # -DWITH_PIL -I../Extensions/Imaging/libImaging tkImaging.c \ # *** Uncomment and edit for TOGL extension only: # -DWITH_TOGL togl.c \ # *** Uncomment and edit to reflect where your Tcl/Tk libraries are: # -L/usr/local/lib \ # *** Uncomment and edit to reflect your Tcl/Tk versions: -ltk80 -ltcl80 \ # *** Uncomment and edit to reflect where your X11 libraries are: # -L/usr/X11R6/lib \ # *** Or uncomment this for Solaris: # -L/usr/openwin/lib \ # *** Uncomment these for TOGL extension only: # -lGL -lGLU -lXext -lXmu \ # *** Uncomment for AIX: # -lld \ # *** Always uncomment this; X11 libraries to link with: # -lX11 -lstdc++ Tcl/Tk header and libs are in the Cygwin32-directories and the compiler finds them. Since I have no idea, what is the equivalent of X11 under Cygwin, I used libstdc++. Is this the problem ?