hello world fails to run on windows
alms at cin.ufpe.br
Tue Jan 23 09:11:50 EST 2001
I am having the very same problem, a recently installed cygwin on
Windows 2000 and the new ghc without DLLs.
The odd thing is that a Hello World using the Windows API
works, but not the console one, which uses only a putStr.
Gdb tells me I got s SIGSEGV when running the getLock function.
BTW, since the -static flag is the only way to compile it should be
run by default in the driver (or at least this should be mentioned
in the downloads page).
Also, the old DLLs should be available for download somewhere (with a
In my case the programs from my students no longer work and I had to get
the DLLs from
them because they are nowhere else, and I can't even recompile hello
> Meurig Sage wrote:
> I installed ghc-4.08.1 earlier today on a Windows NT box. I tried out
> hello world. I compiled with:
> ghc -O -static -o main Main.hs
> Compilation went fine. But when I tried to run the program it produced
> no output. I then experimented further. I got TclHaskell up & running
> and successfully got it to produce a simple user interface. However,
> if I put in a call to putStr into the code the program exits
> I'm running Windows NT, with cygwin v1.1 installed today.
More information about the Glasgow-haskell-bugs