Need Cabal/library building help for windows

For reference, I'm using GHC6.8.1 on WinXP. I'm trying to package up some code into a library. But cabal fails to configure my project:
runhaskell setup.hs configure Configuring Prompt-1.0... setup.hs: ld is required but it could not be found.
Prompt.cabal contains: name: Prompt version: 1.0 cabal-version: >= 1.2 build-type: Simple library exposed-modules: Control.Monad.Prompt Does GHC require additional tools in order to build libraries on Win32? If so, I hope this can be remedied; it builds executables without additional tools after all. What do I need to do next? -- ryan

Ryan Ingram wrote:
For reference, I'm using GHC6.8.1 on WinXP.
setup.hs: ld is required but it could not be found.
I did have the same issue with GHC 6.8.1 on Windows. It is fixed in version 6.8.2. http://haskell.org/ghc/download_ghc_682.html#windows Regards, Felix

Thanks, I was hoping it would be something simple like that!
I'll give it a try when I get home.
-- ryan
On 3/17/08, Felix Martini
Ryan Ingram wrote:
For reference, I'm using GHC6.8.1 on WinXP.
setup.hs: ld is required but it could not be found.
I did have the same issue with GHC 6.8.1 on Windows. It is fixed in version 6.8.2.
http://haskell.org/ghc/download_ghc_682.html#windows
Regards, Felix

On 17/03/2008, Felix Martini
Ryan Ingram wrote:
For reference, I'm using GHC6.8.1 on WinXP.
setup.hs: ld is required but it could not be found.
I did have the same issue with GHC 6.8.1 on Windows. It is fixed in version 6.8.2.
Upgrading GHC to fix this seems a little extreme. You can just add gcc-lib (i.e. C:\ghc\ghc-6.8.1\gcc-lib) to your path. Alistair

On Tue, 2008-03-18 at 09:28 +0000, Alistair Bayley wrote:
On 17/03/2008, Felix Martini
wrote: Ryan Ingram wrote:
For reference, I'm using GHC6.8.1 on WinXP.
setup.hs: ld is required but it could not be found.
I did have the same issue with GHC 6.8.1 on Windows. It is fixed in version 6.8.2.
Upgrading GHC to fix this seems a little extreme. You can just add gcc-lib (i.e. C:\ghc\ghc-6.8.1\gcc-lib) to your path.
Or you can install Cabal-1.2.3.0 which is the version that comes with ghc-6.8.2 and contains the fix: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/Cabal-1.2.3.0 Duncan
participants (4)
-
Alistair Bayley
-
Duncan Coutts
-
Felix Martini
-
Ryan Ingram