471,850 Members | 900 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

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

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 ?!?

Sep 25 '06 #1
2 8266
bubzilla wrote:
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++.

--
Chris "falling further in" Dollin
A rock is not a fact. A rock is a rock.

Sep 25 '06 #2
sry!
ok now it´s in comp.lang.c++

thx

Sep 25 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

11 posts views Thread by Steven T. Hatton | last post: by
2 posts views Thread by Jacob | last post: by
3 posts views Thread by pooja | last post: by
60 posts views Thread by Derrick Coetzee | last post: by
4 posts views Thread by Agos | last post: by
11 posts views Thread by Gary Wessle | last post: by
36 posts views Thread by zouyongbin | last post: by
reply views Thread by YellowAndGreen | last post: by
aboka
reply views Thread by aboka | last post: by

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.