Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id CDAD2476BCA for ; Thu, 7 Nov 2002 10:30:32 -0500 (EST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 3DC88476AB1 for ; Thu, 7 Nov 2002 10:27:18 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.5/8.12.5) with ESMTP id gA7FRKhR019499; Thu, 7 Nov 2002 10:27:20 -0500 (EST) To: "Stephen Whinston" Cc: pgsql-interfaces@postgresql.org Subject: Re: Simple compile question In-reply-to: <0565CAF35FADD64DA09B86C3637BE7291492C2@coex01.trans.corp> References: <0565CAF35FADD64DA09B86C3637BE7291492C2@coex01.trans.corp> Comments: In-reply-to "Stephen Whinston" message dated "Wed, 06 Nov 2002 14:42:54 -0700" Date: Thu, 07 Nov 2002 10:27:19 -0500 Message-ID: <19498.1036682839@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/16 X-Sequence-Number: 3264 "Stephen Whinston" 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