From: | Martijn van Oosterhout <kleptog(at)svana(dot)org> |
---|---|
To: | "vdm(dot)fbsd(at)virgilio(dot)it" <vdm(dot)fbsd(at)virgilio(dot)it> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: postgresql and C++/C |
Date: | 2005-09-28 10:25:19 |
Message-ID: | 20050928102519.GC2436@svana.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Wed, Sep 28, 2005 at 10:59:04AM +0100, vdm(dot)fbsd(at)virgilio(dot)it wrote:
> I've just modified the extension with .c instead of .cpp and run:
> vicbsd# gcc -I /usr/local/include/ prova.c -o prova -Lpq
> /var/tmp//cc86RZZl.o(.text+0x25): In function `main':
> : undefined
> reference to `PQconnectdb'
>
> Nothing seems to be changed!
Pay attention to the case, it's -lpq, not -Lpq. -L is for *search paths*.
Please read the documentation.
http://www.postgresql.org/docs/7.4/interactive/libpq-build.html
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.
From | Date | Subject | |
---|---|---|---|
Next Message | ruben | 2005-09-28 10:33:02 | Re: SQL command to dump the contents of table failed: PQendcopy() |
Previous Message | Patrick.FICHE | 2005-09-28 10:16:18 | Re: ERROR: type "temp_gc" already exists |