Received: from smtp.cistron-office.nl (10fwd.cistron-office.nl [195.64.65.197]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f4FBIwA35723 for ; Tue, 15 May 2001 07:18:58 -0400 (EDT) (envelope-from jtv@cistron-office.nl) Received: from slipstream.cistron-office.nl ([195.64.65.252]) by smtp.cistron-office.nl with smtp (Exim 3.22 #1 (Debian)) id 14zcqP-0000su-00; Tue, 15 May 2001 13:18:25 +0200 Received: by slipstream.cistron-office.nl (sSMTP sendmail emulation); Tue, 15 May 2001 13:18:25 +0200 From: "J. T. Vermeulen" Date: Tue, 15 May 2001 13:18:25 +0200 To: Maxim Maletsky Cc: pgsql-interfaces@postgresql.org Subject: Re: How to connect via C++? Message-ID: <20010515131825.L14645@cistron.nl> Mail-Followup-To: Maxim Maletsky , pgsql-interfaces@postgresql.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.17i In-Reply-To: ; from maxim@japaninc.com on Mon, May 14, 2001 at 04:10:40PM +0900 X-Disclaimer: Include standard disclaimer here. X-Archive-Number: 200105/73 X-Sequence-Number: 1600 On Mon, 14 May 2001, Maxim Maletsky wrote: > There's a task I want to do with C++, it also includes reading from and > writing to a PostgreSQL database. > > How do I do that on C++? > > What libraries are? Use either libpq++ (C++ library), or if you're into that kind of thing, use the C library libpq directly. In the latter case of course, remember to include the headers in extern "C" blocks as usual. Either way you'll probably have to look through the libpq documentation. > Compilers? Whatever works. Try g++. Jeroen