[Haskell-cafe] Problem linking with GHC 6.8.1

Alberto Ruiz aruiz at um.es
Tue Nov 6 12:17:06 EST 2007


If you don't use the foreign function interface I think that you only need 
the -L option:

ghc --make -L/usr/local/lib/ghc-6.8.1/gmp -O2 -o edimail Main.hs

Something similar worked for me, but this new behavior is not very reasonable. 
Could it be a bug?

On Tuesday 06 November 2007 17:47, david48 wrote:
> On 11/6/07, david48 <dav.vire+haskell at gmail.com> wrote:
>
> well I'm not sure where to use the -I/path/to/ghc... so I tried this :
>
> $ cd /usr/local/lib/ghc-6.8.1
> $ sudo cp -R /home/david/Desktop/ghc-6.8.1/gmp .
>
> $ ghc --make -I/usr/local/lib/ghc-6.8.1/gmp -O2 -o edimail Main.hs
> Linking edimail ...
> /usr/bin/ld: cannot find -lgmp
>
>
> I'm not sure what to do next.


More information about the Haskell-Cafe mailing list