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