>
>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