> The CVS edition of Greencard has a file "src/ErrorHook.c" which causes a
> linker error about "_impure_ptr" under Win32 with the latest install-shield
> ghc.
That suggests that the file has been compiled with the wrong GCC options
compared with the rest of the code, e.g. perhaps without -mno-cygwin.
> Commenting out the contents of that file seems to cause no problems so I
> infer that the file is no longer required for Greencard and can be removed
> from the repository.
You can see from the comment at the top of the file that this file is just
prettying up the default error output of GHC's RTS, so it's not needed, but
equally needn't be removed.
> Also, the file had a line:
>
> #if __GLASGOW_HASKELL__ >= 303
>
> which seems to evaluate to false under GHC 5.01 (Win32), so I assume that
> this macro is no-longer defined or is incorrectly set wherever such things
> are defined in ghc.
I think the problem is that the file is getting compiled directly with gcc,
and doesn't therefore have __GLASGOW_HASKELL__ defined. __GLASGOW_HASKELL__
is definitely 501 with the latest InstallShield compiler.
--
http://sc3d.org/rrt/ | violence, n. bravery for cowards
_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs