[Haskell-cafe] will the real quicksort please stand up? (or: sorting a > million element list)

Brent Yorgey byorgey at gmail.com
Wed Oct 24 09:22:04 EDT 2007


On 10/23/07, Thomas Hartman <thomas.hartman at db.com> wrote:
>
>
> Actually I can't compile it, with or without -O2. loads fine into ghci,
> but when I try to create an executable I get
>
> ghc quicksort.hs -o quicksort
> quicksort.o: In function `r1Nc_info': undefined reference to
> `QuickCheckzm1zi0zi1_TestziQuickCheck_vector_closure'
> quicksort.o: In function `r1Nc_info': undefined reference to
> `QuickCheckzm1zi0zi1_TestziQuickCheck_zdf16_closure'
> quicksort.o: In function `s1Ws_info': undefined reference to
> `QuickCheckzm1zi0zi1_TestziQuickCheck_generate_closure'
> quicksort.o: In function `r1Nc_srt': undefined reference to
> `QuickCheckzm1zi0zi1_TestziQuickCheck_vector_closure'
> quicksort.o: In function `r1Nc_srt': undefined reference to
> `QuickCheckzm1zi0zi1_TestziQuickCheck_zdf16_closure'
> quicksort.o: In function `rzC_srt': undefined reference to
> `QuickCheckzm1zi0zi1_TestziQuickCheck_generate_closure'
> collect2: ld returned 1 exit status


hmm, try adding --make to the ghc command line?  Unfortunately, GHC doesn't
automatically chase down dependencies for linking; you must specify them
explicitly with -package, or tell it to auto-chase dependencies with --make.

-Brent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20071024/84189d47/attachment-0001.htm


More information about the Haskell-Cafe mailing list