From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109fba,e1556455f39dbe02 X-Google-Attributes: gid109fba,public X-Google-Thread: 10ba33,e1556455f39dbe02 X-Google-Attributes: gid10ba33,public X-Google-Thread: 11035d,e1556455f39dbe02 X-Google-Attributes: gid11035d,public X-Google-Thread: fee84,e1556455f39dbe02 X-Google-Attributes: gidfee84,public From: Krishnan Subramani Subject: Re: Need help with Template Problems Date: 1997/05/11 Message-ID: <337503A0.A83584@ece.uc.edu>#1/1 X-Deja-AN: 240792914 Distribution: inet References: <3374CBCC.6A25@texas.net> Organization: Univesity of Cincinnati Newsgroups: gnu.g++.help,comp.unix.solaris,comp.unix.osf.osf1,comp.lang.c++ 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