Hard to say what's the cause without knowing more. However,
combining code that uses the cygwin DLL (your Tcl/Tk
installation) with code that doesn't (the ghc-compiled bits),
is known to be troublesome in general. You may want to try to
pick up another non-cygwin Tcl/Tk Win32 build & give it a go.

--sigbjorn


Meurig Sage <[EMAIL PROTECTED]> writes: 
> 
> >
> >Add -mno-cygwin to the gcc command line when compiling any .c's.
> >
> >--sigbjorn
> 
> 
> Thanks, that fixed the initial problem but now I've got another one.
> Running the program causes it to crash with the application error:
> The instruction at "0x77f6ce0c" referenced memory at "0x00000010". The
> memory could not be "written".
> 
> This happens whether I compile with -static or without.
> 
> To run it I use
> ./tclexe ./main
> 
> Where tclexe is the following
> 
> ---------
> #!/bin/sh
> 
> # The root of the cygwin shared libraries. Allowing access to 
> Tk and Tcl.
> 
> root=/ExtraUtils/cygnus/cygwin-b20/share
> 
> export TK_LIBRARY TCL_LIBRARY
> TK_LIBRARY=$root/tk8.0/
> TCL_LIBRARY=$root/tcl8.0/
> 
> exec "$@"
> 
> -------
> Thanks
>   Meurig
> 
> 

Reply via email to