Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » PostgreSQL under Windows (PostgreSQL Windows Skylark)
PostgreSQL under Windows [message #50410] Mon, 22 October 2018 10:24 Go to next message
lovmy is currently offline  lovmy
Messages: 34
Registered: November 2015
Member

Hello

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 !
Re: PostgreSQL under Windows [message #50417 is a reply to message #50410] Wed, 24 October 2018 14:36 Go to previous messageGo to next message
BioBytes is currently offline  BioBytes
Messages: 284
Registered: October 2008
Location: France
Experienced Member
Hi,

Did you try to include the postgreSql package in your project ? Rolling Eyes

Cheers

Biobytes
Re: PostgreSQL under Windows [message #50434 is a reply to message #50410] Tue, 30 October 2018 14:51 Go to previous messageGo to next message
lovmy is currently offline  lovmy
Messages: 34
Registered: November 2015
Member

Hello,

Yes, of course !

I send you the error, my test project and picture of the error.

Thank you for your help !
  • Attachment: Problem.7z
    (Size: 227.37KB, Downloaded 49 times)
Re: PostgreSQL under Windows [message #50435 is a reply to message #50410] Tue, 30 October 2018 14:54 Go to previous messageGo to next message
lovmy is currently offline  lovmy
Messages: 34
Registered: November 2015
Member

This if first part of include and library i used.
Re: PostgreSQL under Windows [message #50436 is a reply to message #50410] Tue, 30 October 2018 14:57 Go to previous messageGo to next message
lovmy is currently offline  lovmy
Messages: 34
Registered: November 2015
Member

And this is the second part of include and library i used.
Re: PostgreSQL under Windows [message #50437 is a reply to message #50436] Tue, 30 October 2018 20:48 Go to previous message
BioBytes is currently offline  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.

Good luck Razz

Biobytes
  • Attachment: libpq.a
    (Size: 109.37KB, Downloaded 40 times)
Previous Topic: GLCtrl not working in 11873
Next Topic: problem with <sapi.h>, text to speech library
Goto Forum:
  


Current Time: Sat Dec 07 18:25:01 CET 2019

Total time taken to generate the page: 0.01114 seconds