I\'m trying to compile Qt 5.10.0 with PostgreSQL 10 (or 9.2, but same error) using mingw on Windows 7.
However when I include the psql include and lib dirs I always get
It seems like you haven't built Qt recently (post 5.8) - the -I
and -L
configuration syntax is no longer supported.
For me postgres just works, all I need is the -sql-psql
configuration flag and the library in my system path.
If that alone doesn't work, you could specify the paths via the addition of the following configuration flags:
PSQL_INCDIR=C:\POSTGRESQL\10\include
PSQL_LIBDIR=C:\POSTGRESQL\10\lib