Re: Attempt to connect to database using libpq++ PgDatabase - Mailing list pgsql-general

From frbn
Subject Re: Attempt to connect to database using libpq++ PgDatabase
Date
Msg-id 3D78A116.70204@efbs-seafrigo.fr
Whole thread Raw
In response to Attempt to connect to database using libpq++ PgDatabase class fails because CONNECTION_BAD  ("Debra LaVille" <debra.laville@digeo.com>)
List pgsql-general
Debra LaVille a écrit:
> I am porting code from Red Hat Linux to Windows 2000 and can not connect to a
> my database using libpq++.


> I can not access the database from my application using libpq++ (CONNECTION_BAD):
>
>     #include <stdio.h>
>     #include <iostream>
>     #include <string>
>     #include "libpq++\pgdatabase.h"
>
>     using namespace std;
>
>     int main(int argc, char* argv[])
>     {
>         PgDatabase myDB("dbname=mediadb user=mediadbuser");
>
>         if ( myDB.ConnectionBad() )
>         {

what does postgres's errlog says ?


pgsql-general by date:

Previous
From: Florian Litot
Date:
Subject: pb on installation
Next
From: Tom Lane
Date:
Subject: Re: 7.3b1 installation