trying to use libpq in Ubuntu

From: Henri De Feraudy <feraudyh(at)yahoo(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: trying to use libpq in Ubuntu
Date: 2010-09-21 15:04:26
Message-ID: 434808.17847.qm@web110807.mail.gq1.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello,
I have developed an application in C++ under Qt in Windows XP, now I would like
to port it to Ubuntu GNU/Linux.
Choosing the libraries in Windows was a piece of cake: the bottom of my Qt
qmake project file was
win32 {
LIBS += "C:\Progra~1\PostgreSQL\8.4\lib\libpq.lib"
INCLUDEPATH += "C:\Progra~1\PostgreSQL\8.4\include"
}
linux-g++ {
LIBS += /usr/lib/libpq.a
INCLUDEPATH += /usr/include/postgresql
}

This works fine in Windows, but in Ubuntu there are more than a hundred
undefined symbols, like references to ldap
Does anyone have a sample project file or suggestions?

Thankyou
Henri

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2010-09-21 15:15:52 Re: What is the effect of locale on numbers?
Previous Message William Temperley 2010-09-21 14:13:33 Triggers and locking