Re: : Errors when compiling with Postgres 7.2.3 Libraries on RedHat 8

From: Tommi Maekitalo <t(dot)maekitalo(at)epgmbh(dot)de>
To: "shey sewani" <pakix2000(at)hotmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: : Errors when compiling with Postgres 7.2.3 Libraries on RedHat 8
Date: 2002-10-23 08:20:24
Message-ID: 200210231020.25001.t.maekitalo@epgmbh.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

It should work then. Maybe the library is compiled with another compiler. I
remember, that RedHat use some strange gcc-versions sometimes.

Try this:

---ttt.cpp:
#include <libpq++.h>

int main()
{
PgDatabase conn("dbname=ttt");
}

---Makefile:

INCLUDE=/usr/local/pgsql/include
LIB=/usr/local/pgsql/lib
CXXFLAGS=-I${INCLUDE}
LFLAGS=-L${LIB}

all: ttt

ttt: ttt.o
g++ -o ttt ${LFLAGS} ttt.o -lpq++ -lpq

clean:
rm -f *.o ttt.o ttt

You should maybe adjust your directories. Then we have the same startingpoint.

If your rpm-database is broken, you could ask the rpm-file, which you
installed with rpm -qlp postgresql-lib.rpm|grep libpg++.

Tommi

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Leif Jensen 2002-10-23 09:36:15 Re: Linking 2 or more databases.
Previous Message Erwan DUROSELLE 2002-10-23 08:05:20 Rép. : Online backup