Re: libpq compile error - Mailing list pgsql-general

From zilch@home.se
Subject Re: libpq compile error
Date
Msg-id 20010608151322.A27174@loony
Whole thread Raw
In response to libpq compile error  (Olivier Cherrier <Olivier.Cherrier@cediti.be>)
List 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

pgsql-general by date:

Previous
From: Olivier Cherrier
Date:
Subject: Rappel : libpq compile error
Next
From: Julien Jehannet
Date:
Subject: Re: Re: why unsigned numbers don't exist ?