Search Postgresql Archives

Re: postgresql and C++/C

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Sep 28, 2005 at 10:59:04AM +0100, vdm.fbsd@xxxxxxxxxxx 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@xxxxxxxxx>   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.

Attachment: pgpuUt2z9amMm.pgp
Description: PGP signature


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux