Libpqxx complains about missing links
So I have the following problem:
g++ -std=c++0x -O3 -I/usr/include/scip main.cpp locations/locationreader.cpp locations/locationassigner.cpp scheduler.o optimizer.o dbmanager.o scheduleData.o exam.o -o main -L/usr/lib -lscip -lreadline -lgmp -lz -llpispx -lsoplex -lobjscip -lnlpi.cppad -lscipopt -lzimpl -lpqxx -lpq -pthread
/usr/lib/../lib64/libpqxx.so: undefined reference to `PQescapeIdentifier'
collect2: error: ld returned 1 exit status
make: *** [main] Error 1
And I can't figure out why it can't find the link because I have libpq installed and it's right there in / usr / lib 64
$ ls | grep pq
libpq.so
libpq.so.5
libpq.so.5.2
libpqxx-4.0.so
libpqxx.so
So, if I could help, that would be great.
+3
source to share
1 answer
PQescapeIdentifier
appeared in PostgreSQL 9.0 which corresponds to libpq.so.5.3
9.0 release notes have the following entry:
Add libpq functions PQescapeLiteral () and PQescapeIdentifier () (Robert Haas)
You seem to be using client libraries from PostgreSQL-8.4 ( libpq.so.5.2
), so it is missing this feature.
+5
source to share