U++ Forum - RDF feed
https://www.ultimatepp.org/forums/
PostgreSQL under Windows
https://www.ultimatepp.org/forums/index.php?t=rview&goto=50410&th=10460#msg_50410
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...
Can you help me ?
Thank you !
]]>lovmy2018-10-22T08:24:21-00:00Re: PostgreSQL under Windows
https://www.ultimatepp.org/forums/index.php?t=rview&goto=50417&th=10460#msg_50417
Did you try to include the postgreSql package in your project ?
Cheers
Biobytes]]>BioBytes2018-10-24T12:36:02-00:00Re: PostgreSQL under Windows
https://www.ultimatepp.org/forums/index.php?t=rview&goto=50434&th=10460#msg_50434
Yes, of course !
I send you the error, my test project and picture of the error.
Thank you for your help !
]]>lovmy2018-10-30T13:51:34-00:00Re: PostgreSQL under Windows
https://www.ultimatepp.org/forums/index.php?t=rview&goto=50435&th=10460#msg_50435
lovmy2018-10-30T13:54:51-00:00Re: PostgreSQL under Windows
https://www.ultimatepp.org/forums/index.php?t=rview&goto=50436&th=10460#msg_50436
lovmy2018-10-30T13:57:21-00:00Re: PostgreSQL under Windows
https://www.ultimatepp.org/forums/index.php?t=rview&goto=50437&th=10460#msg_50437
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.
Good luck
Biobytes
]]>BioBytes2018-10-30T19:48:01-00:00Re: PostgreSQL under Windows
https://www.ultimatepp.org/forums/index.php?t=rview&goto=52971&th=10460#msg_52971
Finally I found a solution for linking in this thread: