[Solved] Use PostgreSQL C Api
-
Hi all,
I have a project that uses MySQL C Api to connect to MySQL, I want to make some test in PostgreSQL.
I use this line to compile with mysql, does any one know what do I have to write for PostgreSQL?@
unix:LIBS += -L/usr/lib -lmysqlclient
@ -
The line has to be:
@
unix:LIBS += -L/usr/lib -lpq
@ -
Actually -L/usr/lib should not be necessary. It does not hurt to have it though.
-
Hi,
Good to know.