Re: error linking with PostgreSQL

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Daniel <danwgrace(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: error linking with PostgreSQL
Date: 2009-11-23 02:16:39
Message-ID: 20351.1258942599@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Daniel <danwgrace(at)gmail(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Brian Modra 2009-11-23 04:09:59 Re: How is the right query for this condition ?
Previous Message Bino Oetomo 2009-11-23 01:47:00 How is the right query for this condition ?