[Haskell-cafe] Compiling Simple Regex Program
Andrew Trusty
scyclops at cc.gatech.edu
Sat Sep 29 21:25:40 EDT 2007
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
More information about the Haskell-Cafe
mailing list