[Haskell-cafe] GHC compilation with postres libs

Edwin Eyan Moragas haaktu at gmail.com
Fri Feb 25 09:47:18 EST 2005


On Fri, 25 Feb 2005 22:38:32 +0800, Edwin Eyan Moragas <haaktu at gmail.com> wrote:
> On Fri, 25 Feb 2005 14:25:21 -0000, Bayley, Alistair
> <Alistair_Bayley at ldn.invesco.com> wrote:
> > Do you not also need the -l option?
> > e.g. (wild guess, assuming library is libpg.so)
> >
> > > $ ghc -o test -L/usr/local/pgsql/lib -lpg Main.hs

My bad,
it's libpq.

so:
 $ ghc -o test -L/usr/local/pgsql/lib -lpq Main.hs
works.

thanks a bunch! :-)

-- 
kind regards,
eyan

http://www.eyan.org


More information about the Haskell-Cafe mailing list