**************************** # include <stdio.h> # include <stdlib.h> # include <libpq-fe.h>
int main() { PGresult *result; PGconn *conn; int feild; printf("successful"); conn = PQconnectdb ("ashok"); result = PQexec (conn, "select * from bill"); feild = PQntuples (result); printf("%d",feild); PQclear (result); PQfinish (conn); printf("hello"); return 1; } I written a code and compile with following command, it complied and create 'a.out' file but when i run the a.out it give nothing. command:- "gcc program.c -I /usr/include/pgsql/include -L /usr/lib/libpq.a -lpq" plz help me. Ashok ---------------------------(end of broadcast)--------------------------- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]