Header include problems error: expected class-name before '{' token

B

bubzilla

Hi,

i´ve got about 10 headerfiles with implemented classes. Now when i try
to compile them i get the following message:

In file included from Proxy/ServerCnx.hh:36,
from Proxy/Payload.hh:30,
...
from main.cc:28
Proxy/Interface.hh:83: error: expected class-name before '{'


The Interface.hh looks like this:

class Module : public ClientCnx{...}

so far, i realisied that ClientCnx isn´t declarated. So I tried to
make a forward Declaration
by using

class ClientCnx;


but now, the compiler says:

Proxy/Interface.hh:83: error_ invalid use of undefined type `ClientCnx`
Proxy/Interface.hh:30: error_ forward declaration of `ClientCnx`


now what can i do to fix this prob ?!?
 
C

Chris Dollin

bubzilla said:
i´ve got about 10 headerfiles with implemented classes. Now when i try
to compile them i get the following message:

In file included from Proxy/ServerCnx.hh:36,
from Proxy/Payload.hh:30,
...
from main.cc:28
Proxy/Interface.hh:83: error: expected class-name before '{'

The Interface.hh looks like this:

class Module : public ClientCnx{...}

You want comp.lang.c++.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top