HELP:[pq++]:constructor `PgDatabase::PgDatabase()' is protected

From: Agnieszka Lesinska <aga(at)fh-konstanz(dot)de>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: HELP:[pq++]:constructor `PgDatabase::PgDatabase()' is protected
Date: 2000-06-16 10:34:49
Message-ID: 200006161034.MAA08053@suntana.fh-konstanz.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

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/)

Browse pgsql-interfaces by date

  From Date Subject
Next Message Jim Caley 2000-06-16 13:03:21 Re: java.sql.SQLException: Bad Timestamp Format at 19 in 2000-06-14 15:48:18.80-04
Previous Message Marius Storm-Olsen 2000-06-16 07:23:44 Linkerror using ODBC on Solaris 2.6 (Sparc st. 5)