Problem in compiling libpq++ library (PostgreSQL 7.0.2, 4.0D)

From: Irene A. Shilikhina <irene_at_alpha.iae.nsk.su>
Date: Tue, 26 Sep 2000 12:02:39 +0700 (NSD)

Hello All,

since this question is platform-dependent, I dare to ask THIS list.

Before sending this e-mail, I read postgres FAQ for this platform and all
requests to this list about postgres but still did not find what I need.

It was not until I came to trying C++ interface that I saw that libpq++
library had not been installed. When I tried to install it with makefile in
the appropriate directory, I found out the cause of the problem:

GNU c++ version 2.10.0, which I am using, does not allow -c and -o flags
together whereas make (I mean GNU make) produces strings like this:

c++ -D__alpha__ -DNOFIXADE -O4 -Olimit 2000 -I../../backend
-I../../include -I../../interfaces/libpq -c -o pgconnection.o
pgconnection.cc

And it looks really strange because it's implied to use GNU compilers.

When I am trying to bypass the problem and use the native cxx, which allows
using of -o option regardless of the type of file, I have to execute these
strings by hand, in order to lower the level of optimization from -O4, but
again, I run into a heaps of errors like "Invalid declaration", "not
declared" and so on.

So, my question is: is there anyone who has installed libpq++ in PostgreSQL
7.0.2 ? I am extrimely disappointed because C interface is working fine,
but my intention was using exactly C++ interface.

Thanks,
Irene
 
*************************************************************************
* *
* Irene A. Shilikhina e-mail: irene_at_alpha.iae.nsk.su *
* System administrator, *
* Institute of Automation & Electrometry, *
* Siberian Branch of Russian Academy of Sciences, *
* Novosibirsk, Russia *
* http://www.iae.nsk.su/~irene *
*************************************************************************
* *
* The road to hell is paved with good intentions. *
* *
*************************************************************************
Received on Tue Sep 26 2000 - 05:04:51 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:41 NZDT