From: rony khoury <rkhoury@apotres.edu.lb>
To: pgsql-interfaces@postgresql.org <pgsql-interfaces@postgresql.org>
Subject: compile error
Date: Tue, 30 Jun 1998 10:23:00 +0300
Message-ID: <35989254.597B3750@apotres.edu.lb> (raw)
hello ,
can somebody explain to me why when I compile the following program i do
not know
how to link the libraries to c .
---------------------
#include <stdio.h>
#include "libpq-fe.h"
void exit_nicely(PGconn* conn)
{
PQfinish(conn);
exit(1);
}
main()
{
printf("\nThe End\n") ;
}
-----------------------
I get the following error
tmp/cca006421.o: In function `exit nicely'
tmp/cca006421.o(.text+0x8): undefined reference to `PQfinish'
Thanks ,
Rony .
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: rkhoury@apotres.edu.lb
Subject: Re: compile error
In-Reply-To: <35989254.597B3750@apotres.edu.lb>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox