Re: trying to use libpq in Ubuntu - Mailing list pgsql-general

From Daniel Verite
Subject Re: trying to use libpq in Ubuntu
Date
Msg-id 62429b65-438d-45c4-a4b0-e7ea689e9fb5@mm
Whole thread Raw
In response to trying to use libpq in Ubuntu  (Henri De Feraudy <feraudyh@yahoo.com>)
List pgsql-general
    Henri De Feraudy wrote:

> linux-g++ {
>   LIBS += /usr/lib/libpq.a
>    INCLUDEPATH += /usr/include/postgresql
> }

Try:

linux-g++ {
    LIBS += -lpq
    INCLUDEPATH += /usr/include/postgresql
}

Also make sure that you have the libpq-dev package installed.

Best regards,
--
Daniel
PostgreSQL-powered mail user agent and storage: http://www.manitou-mail.org

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: What is the effect of locale on numbers?
Next
From: Bryan Murphy
Date:
Subject: Re: pgpool-II 3.0 + postgres 9rc1 + md5 authentication not working