I read the newsgroup and found that I should use the -static flag (can someone update
the documentation) but I then got the following errors:
$ ghc -static main.hs
Compilation IS NOT required
Output file not specified, defaulting to "main.exe"
main.o(.text+0x14):fake: undefined reference to `_imp____init_Prelude'
main.o(.text+0x24):fake: undefined reference to
`_imp__PrelBase_unpackCStringzh_
closure'
main.o(.text+0x28):fake: undefined reference to
`_imp__PrelIO_putStrLn_closure'
main.o(.text+0x42):fake: undefined reference to `_imp__stg_gc_enter_1'
main.o(.text+0x47):fake: undefined reference to `_imp__upd_frame_info'
main.o(.text+0x6e):fake: undefined reference to
`_imp__PrelBase_unpackCStringzh_
closure'
main.o(.text+0x96):fake: undefined reference to `_imp__stg_gc_enter_1'
main.o(.text+0x9b):fake: undefined reference to `_imp__CAF_BLACKHOLE_info'
main.o(.text+0xa3):fake: undefined reference to `_imp__IND_STATIC_info'
main.o(.text+0xb9):fake: undefined reference to `_imp__upd_frame_info'
main.o(.text+0xe1):fake: undefined reference to
`_imp__PrelIO_putStrLn_closure'
collect2: ld returned 1 exit status
Dominic Steinitz
23/12/2000 16:06
To: glasgow-haskell-bugs
cc:
bcc:
Subject: Windows Install Problem
I followed the instructions on the download page but got the following problem. And
indeed they aren't there. Where do I get them from?
Dominic.
administrator@DEFAULT /cygdrive/d/dom/home
$ cat main.hs
module Main(main) where
main = putStrLn "Hello, world!"
administrator@DEFAULT /cygdrive/d/dom/home
$ ghc -o main main.hs
Compilation IS NOT required
gcc: d:/ghc/ghc-4.08.1/lib/Main.dll_o: No such file or directory
gcc: d:/ghc/ghc-4.08.1/lib/PrelMain.dll_o: No such file or directory
administrator@DEFAULT /cygdrive/d/dom/home
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 4.08.1
-------------------------------------------------------------------------------------------------
21st century air travel http://www.britishairways.com
-------------------------------------------------------------------------------------------------
21st century air travel http://www.britishairways.com
_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs