[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [ns] incomplete type(?)
--
Free Dmitry Sklyarov !
http://www.freesklyarov.org
> -----Original Message-----
> From: Jingwen Jin [SMTP:[email protected]]
> Sent: Sunday, September 09, 2001 2:11 AM
> To: [email protected]
> Subject: [ns] incomplete type(?)
>
>
> Hi,
>
> I'm doing something like:
>
> class TTT;
>
> class ProxyAgent : public Agent {
> ...
> TTT ttt;
> ...
> }
>
>
> However, the compilation complains that "field ttt has incomplete type".
> Before adding "TTT ttt", eveything was ok. Does anybody know what's going
> on?
>
Well, ttt has an incomplete type ;-)
Either include the header where TTT is defined (declared ?, I always mess these terms up) or put only a TTT* ttt; in ProxyAgent.
Bye
Alex