This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Tcl/Tk


> I try to compile a DLX simulator called dlxview. It need
> the tcl/tk lib for linking. How can I convert the tcl76.dll
> and tk74.dll into lib.

A good tool is makelib from
ftp.simtel.net/pub/simtelnet/gnu/djgpp/rsxntdj1.zip.
I might make the correct lib itself, but I have never tried that. Instead  
I used the --print flag to list the exported functions, made a .def 
file and used dlltools in a standard way to bild the lib.

> I try the tcl/tk soruce code, it is so hard
> make it work.

True. Especially, it includes the 'try' extended C keyword not 
supported by gcc. However, for pure tcl/tk applications you don't need this. 
The precompiled dlls could work with gnu-win32 with a proper memory allocation 
manegement.  For detailes, read the Windows specific FAQ at
ourworld.compuserve.com/homepages/efjohnson/tclwin.htm.
Recompiling the dlls by MSVC, Symantec C++  (or perhaps Borland C++ 
v5.0) apparently eliminates any memory allocation problems.

>in the gnu-win32 package, it there a errno.h ? and is the package
>support a command called XSynchronize, if so, which library I should
>link to?

Hm. If XSyncronize is required by dlxview itself, not just by tk, this 
probably indicates that this is not a pure tcl/tk application but an 
X11 client. I am not familiar with X11, but worry that the Win32 
native tcl/tk dlls can not be simple linked to it. Check tclPort.h 
and tkPort.h and try to build a real Unix port of tcl/tk...

Good luck
Geza Groma

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]