On Tue, 11 Apr 2000, Tom Lane wrote:
> Oleg Broytmann <[EMAIL PROTECTED]> writes:
> > gcc -O2 -I../../backend -I../../include -I../../interfaces/libpq -fPIC -c
>pgconnection.cc
> > In file included from pgconnection.cc:18:
> > pgconnection.h:76: syntax error before `('
>
> Hmm. Something broken about "string"?
>
> My guess is that configure didn't think it should define
> HAVE_CXX_STRING_HEADER, but that is actually necessary on your
> machine. Please look into it.
Thanks.
Yes, it was undefined. I defined it in config.h - and got all sorts of
other errors. Seems I have broken or incomplete g++ installation, probably
libstd++ and/or libio++. I rarely compile C++ programs, but I cannot recall
such problem:
make[2]: Entering directory
`/usr/local/src/PostgreSQL/postgresql-7.0beta5/src/i
nterfaces/libpq++'
gcc -O2 -I../../backend -I../../include -I../../interfaces/libpq -fPIC
-c pgc
onnection.cc
In file included from /usr/local/include/g++/alloc.h:18,
from /usr/local/include/g++/std/bastring.h:39,
from /usr/local/include/g++/string:6,
from pgconnection.h:29,
from pgconnection.cc:18:
/usr/local/include/g++/stl_config.h:106: _G_config.h: No such file or
directory
In file included from /usr/local/include/g++/streambuf.h:36,
from /usr/local/include/g++/iostream.h:31,
from /usr/local/include/g++/stl_alloc.h:45,
from /usr/local/include/g++/alloc.h:21,
from /usr/local/include/g++/std/bastring.h:39,
from /usr/local/include/g++/string:6,
from pgconnection.h:29,
from pgconnection.cc:18:
/usr/local/include/g++/libio.h:30: _G_config.h: No such file or directory
make[2]: *** [pgconnection.o] Error 1
make[2]: Leaving directory
`/usr/local/src/PostgreSQL/postgresql-7.0beta5/src/in
terfaces/libpq++'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/usr/local/src/PostgreSQL/postgresql-7.0beta5/src/in
terfaces'
make: *** [all] Error 2
Oleg.
----
Oleg Broytmann http://members.xoom.com/phd2.1/ [EMAIL PROTECTED]
Programmers don't die, they just GOSUB without RETURN.