Re: [GENERAL] Re: Errors in Postgres - Mailing list pgsql-interfaces

From Martin Weinberg
Subject Re: [GENERAL] Re: Errors in Postgres
Date
Msg-id 199910241316.JAA26493@osprey.astro.umass.edu
Whole thread Raw
In response to Re: Errors in Postgres  (Bruce Momjian <maillist@candle.pha.pa.us>)
List pgsql-interfaces
Bruce Momjian wrote on Sun, 24 Oct 1999 08:42:53 EDT
>This is a standard C++ problem.  Some platforms need string.h, and some
>just string.  We have not figured out a way to make this work on all
>platforms.
>
>Any ideas?  We kept switching them back and forth until we realized
>this.  Sun's seem to have the problem.
>
>At this point, and OS-specific test would probably be OK.
>

Yes, this has been trouble everywhere.

I believe <string> is ANSI.  In the latest gnulibs, the old libg++ is
replaced by stdc++ which should have "string" defined.  For what it's
worth, this works on one of our sparc solaris boxes with gcc 2.8.1.
Although it may well be something else, you might check to make sure
that you have the latest version of the gnu g++ libraries.

FYI, in the gnu implemenation, the "string" header is just an include
of the original "string.h" but at least it's conforming.

--Martin

pgsql-interfaces by date:

Previous
From: Oscar Overdijk
Date:
Subject: Pgaccess
Next
From: Michael Simms
Date:
Subject: Re: [GENERAL] Re: Errors in Postgres