RE: [Haskell-cafe] GHC compilation with postres libs

From: Edwin Eyan Moragas [mailto:haaktu@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. *****************************************************************

On Fri, 25 Feb 2005 14:25:21 -0000, Bayley, Alistair
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
eyan@tanis $ ghc -o test -L/usr/local/pgsql/lib/ -lpg Main.hs compilation IS NOT required /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../../i486-slackware-linux/bin/ld: cannot find -lpg collect2: ld returned 1 exit status still no go. :-) thanks. kind regards, eyan

On Fri, 25 Feb 2005 22:38:32 +0800, Edwin Eyan Moragas
On Fri, 25 Feb 2005 14:25:21 -0000, Bayley, Alistair
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
participants (2)
-
Bayley, Alistair
-
Edwin Eyan Moragas