Compile it with the "-static" option (see the above announcement of
Reuben
Thomas):
ghc -static -o main main.hs
> Betreff: New InstallShield: no more DLLs
> Datum: Mon, 27 Nov 2000 10:45:23 +0000 (GMT)
> Von: Reuben Thomas <[EMAIL PROTECTED]>
> An: GHC users mailing list <[EMAIL PROTECTED]>
>
> I've put up a new InstallShield for GHC 4.08.1 (Windows edition). This no
> longer contains DLLs and import libraries for the libraries, so you have to
> use the compiler with -static.
>
> I intend to stick to this scheme in future releases (probably replacing
> -static with -dynamic), as GHC derives few benefits from DLLized libraries,
> and a lot of disadvantages. Also, there is at present an unresolved and
> deep-seated bug (possibly not even in GHC) that prevents some very simple
> DLLized programs from working.
>
> Users of DLLs need not despair: one important (and, to the best of my
> knowledge, fully working) version of DLL building remains: you can still
> build static DLLs, that is, DLLs in which all the code has been compiled
> statically, so that all the necessary library code is linked into the DLL.
> Hence, you can still build DLLs to be called from other languages, or to be
> wrapped up as COM components, or whatever.
>
> Finally, one nice side effect is that the size of the distribution is nearly
> halved: it now weighs in at a little over 12Mb.
>
> --
> http://sc3d.org/rrt/ | violence, n. bravery for cowards
>
> ------------------------------------------------------------------------
> _______________________________________________
> Glasgow-haskell-users mailing list
> [EMAIL PROTECTED]
> http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs