Re: libpq compile error

From: zilch(at)home(dot)se
To: pgsql-general(at)postgresql(dot)org
Subject: Re: libpq compile error
Date: 2001-06-08 13:13:22
Message-ID: 20010608151322.A27174@loony
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


> bash-2.04$ gcc -v -I/usr/local/include/postgresql/ -o testlibpq testlibpq.c

Now tell yourself where do you tell the compiler where all the postgresql
code is! The compiler itself wont give you the code for all your postgresql
specific function calls.

try add "-lpq" to the end of the line.

gcc -o testlibpq testlibpq.c -lpq

Daniel Akerud

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Olivier Cherrier 2001-06-08 13:48:19 RE: libpq compile error
Previous Message Julien Jehannet 2001-06-08 13:07:27 Re: Re: why unsigned numbers don't exist ?