ghc 6.8.1 windows link issue ?
simonmarhaskell at gmail.com
Wed Nov 21 04:02:25 EST 2007
> Fernand a écrit :
>> Dear all,
>> Giving a try to GHC 6.8.1 under Windows, I stumble upon the following
>> issue (yes, I'm struggling with HDirect), which did not occur with the
>> 6.6 version : the linking phase of my project fails with
> Actually, the issue appears with the following program :
> > module Oops where
> > import Data.Graph
> > ds_groups :: [SCC String]
> > ds_groups = stronglyConnComp ( :: [(String, Int, [Int])])
> > main = do
> > putStrLn "Oops!"
> > return ()
> $ C:/ghc/ghc-6.8.1/bin/ghc.exe -main-is Oops Oops.hs -o oops.exe
> Oops.o(.text+0x46):fake: undefined reference to
> Oops.o(.text+0x2db):fake: undefined reference to
> Oops.o(.data+0x0):fake: undefined reference to
> collect2: ld returned 1 exit status
> Compiling that same program with GHC-6.6 (same command line) works fine.
> Do I need to submit a bug or did something changed in the librairies'
> structure that I missed somewhere ?
You haven't told GHC that you want to link the containers package. Try
adding -package containers, or using --make which does this automatically.
More information about the Glasgow-haskell-users