468,512 Members | 1,501 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,512 developers. It's quick & easy.

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

Hi,

ive 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 isnt 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 8126
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 its 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 NPC403 | last post: by
1 post views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.