[ns] Nam and ns (GCC 3.2)

Nicolas Christin nicolas@cs.virginia.edu
Mon Oct 14 13:30:02 2002


On Mon, 14 Oct 2002, Wilkes,Peter wrote:

> In file included from netmodel.cc:53:
> queue.h:48: friend declaration requires class-key, i.e. `friend struct
> Queue'
> make: *** [netmodel.o] Error 1
> [pwilkes@wells nam-1.0a11a]$


It's the same problem... In queue.h, replace:

friend Queue;

by:

friend class Queue;

This should take care of the problem,
-- 
Nicolas Christin
Ph.D. Candidate, University of Virginia, Computer Science
http://www.cs.virginia.edu/~nicolas