Received: from hub.org.org (localhost [127.0.0.1]) by hub.org (8.10.1/8.10.1) with SMTP id e9A2egJ51759 for ; Mon, 9 Oct 2000 22:40:42 -0400 (EDT) Received: from atlas.cc.itu.edu.tr (IDENT:root@atlas.cc.itu.edu.tr [160.75.2.22]) by hub.org (8.10.1/8.10.1) with ESMTP id e998uaJ31145 for ; Mon, 9 Oct 2000 04:56:37 -0400 (EDT) Received: from aontws4037 (AONTWS4037.cc.itu.edu.tr [160.75.5.37]) by atlas.cc.itu.edu.tr (8.9.3/8.9.3) with SMTP id LAA30684 for ; Mon, 9 Oct 2000 11:56:33 +0300 Reply-To: From: "Deniz Hastorun" To: Subject: problem connecting with libpq++ interface Date: Mon, 9 Oct 2000 11:55:05 +0300 Message-ID: <000d01c031ce$9ed29a00$25054ba0@cc.itu.edu.tr> MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1254" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 X-Archive-Number: 200010/58 X-Sequence-Number: 1415 Hi everybody, I have a really strange problem . I'm trying to connect to PostgreSQL db from witin my C++ program and using the libpq++ interface functions . But strangely it won't connect and I'm receiving the following error message connection to db failed. Error returned:ERROR: PQconnectdb() - Missing '=' after 'template1' in conninfo .here's my code PGconn *conn1; const char * dbname="template1"; PgDatabase data(dbname); conn1=PQconnectdb(dbname); if (data.ConnectionBad()) { cerr<<" connection to db failed."<< endl <<" Error returned:" << data.ErrorMessage() << endl; exit(1); } any idea would be appreciated. thanks in advance! deniz