i try to use PostgreSQL under Windows in a Skylark application.
I added include postgreSQL directory and lib PostgreSQL directory containing libpq.lib file in Build method.
I have changed "library(WIN32 !NOPOSTGRESQL GCC) pq;" to "library(WIN32 !NOPOSTGRESQL GCC) libpq;" in PostgreSQL.upp because i had the error "cannot find -lpq"
I'm using PostgreSQL 9.6.10 and TheIDE version 11873
Now i have error "undefined reference to 'PQerrorMessage'" and other error message for PQconnectdb, PQstatus...
BioBytes Messages: 284 Registered: October 2008 Location: France
Experienced Member
Hi Lovmy,
After exploring your files and Pgsql include and libray files you use in your project, I realized that you compile your project using MingW. If I am right you should have a libpq.a file in your PostgreSQL lib directory.
I prefer to use MySql and MSC15 in my projects. You will find attached a libpq.a file I got from psgsql 9.1 version I guess. Maybe it could help on your side.