On Wed, Sep 28, 2005 at 10:59:04AM +0100, [EMAIL PROTECTED] 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@svana.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.
pgpA0VVmIqdJs.pgp
Description: PGP signature