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 > >
RE: Compilation problem with ghc-4.03 win32
Sigbjorn Finne (Intl Vendor) Fri, 11 Jun 1999 10:21:32 +0200 (MET DST)
- Compilation problem with ghc-4.03 win32 Meurig Sage
- Re: Compilation problem with ghc-4.03 wi... Meurig Sage
- RE: Compilation problem with ghc-4.03 wi... Sigbjorn Finne (Intl Vendor)
- Sigbjorn Finne (Intl Vendor)
