[Haskell-cafe] GHC compilation with postres libs

Bayley, Alistair Alistair_Bayley at ldn.invesco.com
Fri Feb 25 09:25:21 EST 2005


> From: Edwin Eyan Moragas [mailto:haaktu at gmail.com] 
> 
> -compiled Main.hsc with:
> $ hsc2hs -I/usr/local/pgsql/include Main.hsc
> all went well with this
> 
> - tried compiling this way:
> $ ghc -o test -L/usr/local/pgsql/lib Main.hs


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 

Alistair.

-----------------------------------------
*****************************************************************
Confidentiality Note: The information contained in this   message, and any
attachments, may contain confidential   and/or privileged material. It is
intended solely for the   person(s) or entity to which it is addressed. Any
review,   retransmission, dissemination, or taking of any action in
reliance upon this information by persons or entities other   than the
intended recipient(s) is prohibited. If you received  this in error, please
contact the sender and delete the   material from any computer.
*****************************************************************



More information about the Haskell-Cafe mailing list