Hello,

I'm using GHC 6.6.1 under Windows XP and I can't get the following simple program to compile.

import Text.Regex
main = putStrLn (subRegex (mkRegex "c") "abc" "a")


It runs in GHCi just fine but GHC gives the following output when trying to compile:

project1.o(.text+0x169):fake: undefined reference to `regexzmcompatzm0zi71_Textz
iRegex_mkRegex_closure'
project1.o(.text+0x1f7):fake: undefined reference to `regexzmcompatzm0zi71_Textz
iRegex_subRegex_closure'
project1.o(.rodata+0x4):fake: undefined reference to `regexzmcompatzm0zi71_Textz
iRegex_mkRegex_closure'
project1.o(.rodata+0x8):fake: undefined reference to `regexzmcompatzm0zi71_Textz
iRegex_subRegex_closure'
collect2: ld returned 1 exit status

_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to