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 -lpqxx
are linker flags. The variableQMAKE_CXXFLAGS
specifies compiler flags. Use the proper variableQMAKE_LIBS
for specifying linker flags: