Received: from suntana.fh-konstanz.de (suntana.fh-konstanz.de [141.37.9.230]) by hub.org (8.10.1/8.10.1) with ESMTP id e5GAYqI12856 for ; Fri, 16 Jun 2000 06:34:53 -0400 (EDT) Received: (from nobody@localhost) by suntana.fh-konstanz.de (8.9.3+Sun/8.9.3) id MAA08053; Fri, 16 Jun 2000 12:34:49 +0200 (MET DST) Date: Fri, 16 Jun 2000 12:34:49 +0200 (MET DST) From: Agnieszka Lesinska Message-Id: <200006161034.MAA08053@suntana.fh-konstanz.de> To: pgsql-interfaces@postgresql.org Reply-To: aga@fh-konstanz.de MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 8bit User-Agent: IMP/PHP3 Imap webMail Program 2.0.11 Subject: HELP:[pq++]:constructor `PgDatabase::PgDatabase()' is protected X-Archive-Number: 200006/86 Hello, I'm getting the following problem: In file included from CDatenbankSQL.cpp:8: CDatenbankSQL.h:20: warning: ANSI C++ forbids initialization of member `data' /usr/local/pgsql/include/libpq++.H: In method `CDatenbankSQL::CDatenbankSQL()': /usr/local/pgsql/include/libpq++.H:74: constructor `PgDatabase::PgDatabase()' is protected CDatenbankSQL.cpp:11: within this context CDatenbankSQL.cpp:11: in base initialization for class `PgDatabase' The class instantiates a public member 'PgDatabase data("soft4")'. The constructor looks like this: CDatenbankSQL::CDatenbankSQL(void) { iError = 0; sprintf(dbName, "soft4"); iRowPos = 0; iFieldPos = 0; iConnected = 0; } what's wrong there ? thanks in advance. cheers, Aga ----------------------------------------------------------------- This mail was sent through IMP http://webmail.fh-konstanz.de/imp/ (http://web.horde.org/imp/)