Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 2D46A4761DD for ; Wed, 6 Nov 2002 16:42:55 -0500 (EST) Received: from coex01.trans.corp (unknown [65.221.156.5]) by postgresql.org (Postfix) with ESMTP id 363074760CB for ; Wed, 6 Nov 2002 16:42:54 -0500 (EST) X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 content-class: urn:content-classes:message Subject: Simple compile question MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Wed, 6 Nov 2002 14:42:54 -0700 Message-ID: <0565CAF35FADD64DA09B86C3637BE7291492C2@coex01.trans.corp> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Simple compile question Thread-Index: AcKF3XbIcg81MZF5QQaXEp2eqh4Mqg== From: "Stephen Whinston" To: X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/13 X-Sequence-Number: 3261 I just installed pgsql this morning and already encountered some difficulti= es. How do I compile a C/C++ client application with pgsql? Here's what I d= o: gcc -c -I/usr/local/pgsql/include sample.cpp and I get: aggregate 'PGconn conn' has incomplete type and cannot be initialized aggregate 'PGresult res' has incomplete type and cannot be initialized The libpq-fe.h file *is* in /usr/local/pgsql/include What other include files am I missing? Also, a lot of messages seem to indicate that there is sample code under th= e src/ dir. Where is this? It is not under /usr/local/pgsql. Did I miss a s= tep in the install? thanks, Stephen