Re: Simple compile question - Mailing list pgsql-interfaces

From Tom Lane
Subject Re: Simple compile question
Date
Msg-id 19498.1036682839@sss.pgh.pa.us
Whole thread Raw
In response to Simple compile question  ("Stephen Whinston" <swhinston@pillardata.com>)
List pgsql-interfaces
"Stephen Whinston" <swhinston@pillardata.com> writes:
> gcc -c -I/usr/local/pgsql/include sample.cpp
> aggregate 'PGconn conn' has incomplete type and cannot be initialized
> aggregate 'PGresult res' has incomplete type and cannot be initialized

Where did you get this "sample.cpp" from?  It appears to be written
incorrectly.

> Also, a lot of messages seem to indicate that there is sample code
> under the src/ dir. Where is this?

Look in the source-code distribution.  I don't believe we install any
sample code; there's no standard place for examples in the usual system
directories.
        regards, tom lane


pgsql-interfaces by date:

Previous
From: Payman
Date:
Subject: Re: Simple compile question
Next
From: Bruce Momjian
Date:
Subject: Re: PQcmdTuples() declaration