HELP:[pq++]:constructor `PgDatabase::PgDatabase()' is protected - Mailing list pgsql-interfaces

From Agnieszka Lesinska
Subject HELP:[pq++]:constructor `PgDatabase::PgDatabase()' is protected
Date
Msg-id 200006161034.MAA08053@suntana.fh-konstanz.de
Whole thread Raw
List 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/)


pgsql-interfaces by date:

Previous
From: Marius Storm-Olsen
Date:
Subject: Linkerror using ODBC on Solaris 2.6 (Sparc st. 5)
Next
From: Thomas Holmgren
Date:
Subject: Perl interface