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

Поиск
Список
Период
Сортировка
От Tommi Maekitalo
Тема Re: : Errors when compiling with Postgres 7.2.3 Libraries on RedHat 8
Дата
Msg-id 200210231020.25001.t.maekitalo@epgmbh.de
обсуждение исходный текст
Ответ на Re: : Errors when compiling with Postgres 7.2.3 Libraries on RedHat 8  ("shey sewani" <pakix2000@hotmail.com>)
Список 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 по дате отправления:

Предыдущее
От: "Erwan DUROSELLE"
Дата:
Сообщение: Rép. : Online backup
Следующее
От: Leif Jensen
Дата:
Сообщение: Re: Linking 2 or more databases.