Your INCLUDEPATH is still wrong.
qmake -o Makefile "INCLUDEPATH+=C:\psql\include" "LIBS+=C:\psql\lib\ms\libpq.lib" psql.pro
# The Postgres includes ^^^^^ and libraries ^^^^^^^
qmake -o Makefile "INCLUDEPATH+=C:\psql\include" "LIBS+=C:\psql\lib\ms\libpq.lib" psql.pro
# The Postgres includes ^^^^^ and libraries ^^^^^^^
To copy to clipboard, switch view to plain text mode
Notice that this points to the includes that come with Postgres and not anything to do with Qt as you are doing now.
Try
qmake -o Makefile "INCLUDEPATH+=C:\Program Files\PostgreSQL\9.1\include" "LIBS+=C:\Program Files\PostgreSQL\9.1\lib\ms\libpq.lib" psql.pro
qmake -o Makefile "INCLUDEPATH+=C:\Program Files\PostgreSQL\9.1\include" "LIBS+=C:\Program Files\PostgreSQL\9.1\lib\ms\libpq.lib" psql.pro
To copy to clipboard, switch view to plain text mode
You may still have issues with the space in the paths.
Bookmarks