Hello world fails on Win32

Derek Elkins ddarius at hotpop.com
Tue Dec 30 04:58:03 EST 2003


On Tue, 30 Dec 2003 08:08:18 +0100
Gour <gour at mail.inet.hr> wrote:

> Derek Elkins (ddarius at hotpop.com) wrote:
> 
> > Are you sure it's not producing an a.out.  You didn't give the
> > commandline you used to invoke the compiler.  You can use -o to
> > explicitly name the executable file.
> 
> ghc -o main main.hs 
> 
> which produces main.hi & main.o, but no linking and executable
> main.exe.
> 
> The same line, produces executable on Linux.
> 
> I noticed this problem when trying to compile darcs and saw that its
> configure script fails when trying to compile "Hello world" test
> program.
> 
> Any idea?

Add -v and see what's going on, make sure everything seems right.



More information about the Glasgow-haskell-bugs mailing list