Re: [ADMIN] error in code

2003-12-11 Thread Stephen Powell
On 10 Dec 2003, [EMAIL PROTECTED] wrote: > I written a code [...] Checking for errors is good: # include # include # include int main() { PGresult *result = NULL; PGconn *conn = NULL; int feild; printf("successful"); conn = PQconnectdb ("ashok"); if

[ADMIN] error in code

2003-12-09 Thread Ashok Chauhan
# include # include # include int main() { PGresult *result; PGconn *conn; int feild; printf("successful"); conn = PQconnectdb ("ashok"); result = PQexec (conn, "select * from bill"); feild = PQntuples (result

Re: [ADMIN] error in code

2003-12-08 Thread Oliver Elphick
On Mon, 2003-12-08 at 13:55, Ashok Chauhan wrote: > I make the following code with the make command but give the following > the errors:- > > /tmp/ccUWs9W9.o: In function `main': > /tmp/ccUWs9W9.o(.text+0x19): undefined reference to `PQconnectdb' > /tmp/ccUWs9W9.o(.text+0x2f): undefined reference

[ADMIN] error in code

2003-12-08 Thread Ashok Chauhan
hi * # include # include # include # include int main() { PGresult *result; PGconn *conn; int feild; conn = PQconnectdb ("ashok"); result = PQexec (conn, "select * from bill"); feild = PQntuples (result); p