X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fdocs%2Fusers_guide%2Fwin32-dlls.sgml;h=488f5bd9c74dc7f51bf305e0edca693bc76329de;hb=fb7a723bfd7650a705cb226e07c5b08b7a8e9279;hp=a7b107b40e33617e9bb51413636eb6d0abdb9818;hpb=57e8fda3236d05b26d0d76cb4593c4282a4d48f8;p=ghc-hetmet.git diff --git a/ghc/docs/users_guide/win32-dlls.sgml b/ghc/docs/users_guide/win32-dlls.sgml index a7b107b..488f5bd 100644 --- a/ghc/docs/users_guide/win32-dlls.sgml +++ b/ghc/docs/users_guide/win32-dlls.sgml @@ -80,11 +80,11 @@ option on all the Haskell modules that make up your application. -Making libraries into DLLs doesn't work on Windows at the +Making libraries into DLLs doesn't work on Windows at the moment (and is no longer supported); however, all the machinery is still there. If you're interested, contact the GHC team. Note that building an entire Haskell application as a DLL is still supported -(it's just inter-DLL Haskell calls that don't work). +(it's just inter-DLL Haskell calls that don't work). Creating a Win32 DLL --mk-dll Sealing up your Haskell library inside a DLL is straightforward; @@ -238,7 +238,7 @@ RTS---a possible implementation is: #include <windows.h> #include <Rts.h> -EXTFUN(__init_Adder); +EXTFUN(__stginit_Adder); static char* args[] = { "ghcDll", NULL }; /* N.B. argv arrays must end with NULL */ @@ -252,7 +252,7 @@ DllMain { if (reason == DLL_PROCESS_ATTACH) { /* By now, the RTS DLL should have been hoisted in, but we need to start it up. */ - startupHaskell(1, args, __init_Adder); + startupHaskell(1, args, __stginit_Adder); return TRUE; } return TRUE;