On 10/23/07, Thomas Hartman <[EMAIL PROTECTED]> 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
_______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
