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 ?