Add -mno-cygwin to the gcc command line when compiling any .c's.

--sigbjorn

Meurig Sage [mailto:[EMAIL PROTECTED]] writes: 
> 
> Using the new ghc-4.03 binary snapshot on Windows NT I get 
> the following
> problem compiling a file.
> 
> gcc -c tclhaskell.c
> ghc-4.03 -fglasgow-exts '-#include "tclhaskell.h"' -o main.exe Main.hs
> tclhaskell.o -ltcl80 -ltk80
> 
> tclhaskell.o(.text+0x69):tclhaskell.c: undefined reference to 
> `_impure_ptr'
> tclhaskell.o(.text+0x34b):tclhaskell.c: undefined reference 
> to `_impure_ptr'
> tclhaskell.o(.text+0x3f2):tclhaskell.c: undefined reference 
> to `_impure_ptr'
> tclhaskell.o(.text+0x450):tclhaskell.c: undefined reference 
> to `_impure_ptr'
> tclhaskell.o(.text+0x487):tclhaskell.c: undefined reference 
> to `_impure_ptr'
> tclhaskell.o(.text+0x51e):tclhaskell.c: more undefined references to
> `_impure_ptr' follow
> collect2: ld returned 1 exit status
> 
> I also tried compiling with -static to see if it made any 
> difference but no
> change.
> 
> Compiling with ghc-4.02 works without problem.
> 
> I've enclosed the necessary files.
> 
> Thanks
>   Meurig
> 
> 
> 

Reply via email to