Re: error linking with PostgreSQL - Mailing list pgsql-general

From Tom Lane
Subject Re: error linking with PostgreSQL
Date
Msg-id 20351.1258942599@sss.pgh.pa.us
Whole thread Raw
In response to error linking with PostgreSQL  (Daniel <danwgrace@gmail.com>)
List pgsql-general
Daniel <danwgrace@gmail.com> writes:
>     PGconn pg_conn;

You probably want that to be "PGconn *pg_conn;"

> db_util.h:11: error: field 'pg_conn' has incomplete type

libpq doesn't expose the struct type PGconn, only pointers to it.

            regards, tom lane

pgsql-general by date:

Previous
From: Bino Oetomo
Date:
Subject: How is the right query for this condition ?
Next
From: Brian Modra
Date:
Subject: Re: How is the right query for this condition ?