Received: from corvette.mascari.com (dhcp26131045.columbus.rr.com [24.26.131.45]) by hub.org (8.9.3/8.9.3) with ESMTP id QAA10152 for ; Wed, 15 Dec 1999 16:10:52 -0500 (EST) (envelope-from mascarm@mascari.com) Received: from mascari.com (ferrari.mascari.com [192.168.2.1]) by corvette.mascari.com (8.8.7/8.8.7) with ESMTP id MAA02686; Wed, 15 Dec 1999 12:10:48 -0500 Message-ID: <38580392.AD9C8449@mascari.com> Date: Wed, 15 Dec 1999 16:09:39 -0500 From: Mike Mascari Organization: Mascari Development Inc. X-Mailer: Mozilla 4.7 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 To: blackw@sfu.ca CC: pgsql-interfaces@postgreSQL.org Subject: Re: [INTERFACES] in pgconnection.h (?) References: <3857E1DB.9DC3C3E3@sfu.ca> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Richard wrote: > I'm putting together my first C++ pgsql client program and have run into > a snag. I #include , but when I compile, I get a message > saying > > /usr/include/pgsql/libpq++/pgconnection.h:24: string: No such file or > directory > > Looking in pgconnection.h, I see > > #include > > (Call me old-fashioned, but I thought us C hacks had agreed to use ".h" > when naming our include files.) Later on in the file I see the > declaration > > string IntToString(int); > > Now, I assume that "string" is a class. But where would I find the > header file "string"? > > Thanks in advance for clarifying what is clearly !obvious to me. > > Cheers, > Richard Blackwell > > The string class should have come with the standard C++ libraries installed with your C++ compiler. For instance, on my RedHat 5.2 machine, I have: $ cat /usr/include/g++/string // Main header for the -*- C++ -*- string classes. #ifndef __STRING__ #define __STRING__ #include extern "C++" { typedef basic_string string; // typedef basic_string wstring; } // extern "C++" #endif