
7 Jan
2011
7 Jan
'11
12:01 p.m.
On Friday 07 January 2011 17:51:32, Graham Enos wrote:
Hi all,
I'm having trouble compiling (with GHC) a program that uses the Data.Numbers.Primes package (newest, 0.2.0.0) on Mac OS X, 10.6. Any help would be greatly appreciated!
It gets to the linking stage, and then complains of undefined symbols:
ghc -O2 counting_primes_200.hs
Unless you're using GHC-7, you need the --make flag: $ ghc -O2 --make counting_primes_200.hs (or you can specify the used packages directly with the -package flag, but --make is far more convenient).