I use Ubuntu 18.04, Qt creator 4.5.2. I added in pro file:
CONFIG += c++1z
QMAKE_CXXFLAGS += -lpq -lpqxx
Still got following error:
/usr/local/include/pqxx/strconv.hxx:76: error: undefined reference to `pqxx::internal::demangle_type_name[abi:cxx11](char const*)'
-lpq -lpqxxare linker flags. The variableQMAKE_CXXFLAGSspecifies compiler flags. Use the proper variableQMAKE_LIBSfor specifying linker flags: