From: Krishnan Subramani <skrish@ece.uc.edu>
Subject: Re: Need help with Template Problems
Date: 1997/05/11 [thread overview]
Message-ID: <337503A0.A83584@ece.uc.edu> (raw)
In-Reply-To: 3374CBCC.6A25@texas.net
Jean-Claude Magras wrote:
> but I get this insistent error before many others....
> NODE.h:98: field `IPsocket' has incomplete type
>
This is probably because you have not given a forward declaration of U,
the type of IPsocket. This is not sufficient since you are trying to
instantiate an object IPsocket, of type U. The compiler MUST know how
much memory it has to allocate for the object, the objects in the class
U (if any), etc. You have to include the class definition of U before
you can instantiate any object of type U.
Hope this helps.
--
Krishnan Subramani Phone : 513-961-7812
375, Probasco Street #2 E-mail : skrish@ececs.uc.edu
Cincinnati, Ohio 45220 URL : http://www.ececs.uc.edu/~skrish
prev parent reply other threads:[~1997-05-11 4:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-05-10 4:00 Need help with Template Problems Jean-Claude Magras
1997-05-10 4:00 ` Jason Merrill
1997-05-11 4:00 ` Jean-Claude Magras
1997-05-11 4:00 ` Jean-Claude Magras
1997-05-11 4:00 ` Krishnan Subramani [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox