Re: : Errors when compiling with Postgres 7.2.3 Libraries on RedHat 8 - Mailing list pgsql-general

From Tommi Maekitalo
Subject Re: : Errors when compiling with Postgres 7.2.3 Libraries on RedHat 8
Date
Msg-id 200210231020.25001.t.maekitalo@epgmbh.de
Whole thread Raw
In response to Re: : Errors when compiling with Postgres 7.2.3 Libraries on RedHat 8  ("shey sewani" <pakix2000@hotmail.com>)
List 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



pgsql-general by date:

Previous
From: "Erwan DUROSELLE"
Date:
Subject: Rép. : Online backup
Next
From: Leif Jensen
Date:
Subject: Re: Linking 2 or more databases.