473,240 Members | 1,600 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,240 software developers and data experts.

error: `Klasa1' is inaccessible

I don't know where and why the error is.

class Klasa1
int A, D, M, T;
Klasa1(int a = -1, int d = -1, int m = -1, int t = -1);
int PA();
int PD();
int PM();
int PT();
class Klasa2 : public KlasaA, Klasa1
enum1 m_enum1;
Klasa2(enum1, KlasaA&, Klasa1&);
class Klasa3 : public Klasa2
enum2 m_enum2;
Klasa3(enum1, KlasaA&, Klasa1&, enum2);
enum2 Enum2();

Klasa2::Klasa2(enum1 pan, KlasaA nag, Klasa1 p) : m_enum1(pan),
KlasaA(nag), Klasa1(p) {}
Klasa2::Klasa2(Klasa2 kopiowana) : m_enum1(kopiowana.m_enum1),
KlasaA(kopiowana), Klasa1(kopiowana) {}

Klasa3::Klasa3(enum1 pan, KlasaA nag, Klasa1 p, enum2 Enum2) :
Klasa2(pan, nag, p), m_enum2(Enum2) {} //8
Klasa3::Klasa3(ZbiorczaLad& kopiowana) : Klasa2(kopiowana),
m_enum2(kopiowana.m_enum2) {}
eTypLad ZbiorczaLad::Enum2() {return m_enum2;}


g++ -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -g -O2 -c
KlasaNr.cc -MT KlasaNr.lo -MD -MP -MF .deps/KlasaNr.TPlo -fPIC -DPIC -o
.../../include/Klasa.h: In constructor `
Klasa3::Klasa3(enum1, KlasaA, Klasa1, enum2)':
.../../include/Klasa.h: error: `Klasa1' is inaccessible
KlasaNr.cc:8: error: within this context

what's wrong?
Jul 22 '05 #1
0 1105

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: Snake Djip | last post by:
Hi, I have a problem with a home-made DLL used in an ASP environment. It is coded in VB6, apartment-threaded. The DLL returns a binary PNG stream (an image). I use it with ASP's...
by: Larry | last post by:
I have a VB background and am developing a new windows app in Csharp. I'm getting the error. 'inaccessible due to its protection level' I've added a TextBox1 and a Button1 to a form. I...
by: Bill Rubin | last post by:
The following code snippet shows that VC++ 7.1 correctly compiles a static member function invocation from an Unrelated class, since this static member function is public. I expected to compile the...
by: Fir5tSight | last post by:
Hi All, I used the following code in C#: using System.Drawing; //blah blah blah Bitmap bmp = new Bitmap();
by: jheled | last post by:
Staring with g++ 3.4, this code results in an error ---------------------------------- struct A { }; class B : private A { };
by: milund | last post by:
I have a "funny" after upgrading to .NET2.0. The following code is placed inside an unsafe method in assembly "A" System.Object myIUnknownObject =...
by: Shane | last post by:
(reposted from comp.sys.hp.hpux) The following code compiles fine on A5.52 and other compilers, however aCC 6.15 generates an error: #include <vector> using namespace std; class ClassA :...
by: gary0gilbert | last post by:
An unusual spin to this recurring disk or network error in a Terminal Server environment. Access 2000, Terminal Server 2000, file server is windows 2000. All users have a separate copy of the...
by: =?ISO-8859-1?Q?Marcel_M=FCller?= | last post by:
In the code below gcc says test.cpp: In constructor `SingleInfoDialog::SingleInfoDialog(const PlayableSetBase&)': test.cpp:2: error: `class PlayableSetBase' is inaccessible test.cpp:24: error:...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.