Missing 'ErrorHdrHook' in GHC 6.0
Kevin S. Millikin
kmillikin@atcorp.com" <kmillikin@atcorp.com
Fri, 20 Jun 2003 11:09:34 -0500
I just switched to GHC 6.0 for a project where I have "plugins" that
are written in Haskell and reside in a Win32 DLL.
I can make everything work with 6.0, except I get this when building
the DLL:
d:/ghc/ghc-6.0/libHSbase.a(TopHandler__7.o)(.text+0xc8):ghc7504.hc:
undefined reference to `ErrorHdrHook'
dllwrap: gcc exited with status 1
I wonder why it's just ErrorHdrHook that can't be found? My solution
is to include this:
void ErrorHdrHook(FILE *where) {
fprintf(where, "\n");
}
in the DLL.
----
Kevin S. Millikin Architecture Technology Corporation
Research Scientist Specialists in Computer Architecture
(952)829-5864 x162 http://www.atcorp.com