This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: What does this error message means?
- To: Nathan Sidwell <nathan at acm dot org>
- Subject: Re: What does this error message means?
- From: Alex Buell <alex dot buell at tahallah dot demon dot co dot uk>
- Date: Sun, 18 Oct 1998 10:37:45 -0400 (EDT)
- cc: Linux Egcs <egcs at cygnus dot com>
- Reply-To: alex dot buell at tahallah dot demon dot co dot uk
On Sun, 18 Oct 1998, Nathan Sidwell wrote:
> It's a *warning* not an error -- the word `warning' should have given
> you a clue :-)
Except in this case, it stops immediately after this message, and displays
some really weird characters, as you can see from the following output.
gcc -c -O6 -m486 -I. -I/usr/include/g++ -Wall -finline-functions -funroll-all-loops -fguiding-decls -traditional -DSOUNDSUPPORT beebmem.cc
In file included from dagXCL/Window.h:29,
from dagXCL/TopLevelWindow.h:27,
from beebwin.h:30,
from main.h:24,
from beebmem.cc:30:
dagCL/AssocArray.h:48: warning: ANSI C++ forbids declaration `dagAssocArray' with no type
dagCL/AssocArray.h:48: `G>' is neither function nor method; cannot be declared friend
make: *** [beebmem.o] Error 1
This is the code as follows (the error occurs on the line where it defines
friend dagAssocArray<Index,Content>)
template<class Index, class Content> class dagAssocArray_Element {
friend dagAssocArray<Index,Content>;
Index index;
Content* content;
dagAssocArray_Element<Index,Content>* next;
dagAssocArray_Element(Index i, Content* c,
dagAssocArray_Element<Index,Content>* n) : index(i), content(c),
next(n) {};
}; /* dagAssocArray_Element */
Any further ideas?
Cheers,
Alex
--
/\_/\ Legalise cannabis now!
( o.o ) Grow some cannabis today!
> ^ < Peace, Love, Unity and Respect to all.
http://www.tahallah.demon.co.uk - *new* - rewritten for text browser users!
Linux tahallah 2.1.125 #49 SMP Fri Oct 9 07:18:02 EDT 1998
Two Intel Pentium Pro processors, 331.78 total bogomips, 32M RAM
System library 2.0.98