Network.Socket on win32

Simon Marlow simonmar at microsoft.com
Tue Mar 2 14:36:01 EST 2004


 
> This program does not compile using GHC 6.2 on winXP.
> 
>   import Network.Socket
>   main = do putStr ""
> 
> The error is:
> 
>   conc.o(.text+0x22):fake: undefined reference to 
> `__stginit_NetworkziSocket_'
> 
> What am I doing wrong?

You need to add '-package network' to the command line when linking, or
compile the program with --make.

Cheers,
	Simon


More information about the Glasgow-haskell-users mailing list