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: alex dot buell at tahallah dot demon dot co dot uk
- Subject: Re: What does this error message means?
- From: Nathan Sidwell <nathan at acm dot org>
- Date: Sun, 18 Oct 1998 14:07:17 +0100
- CC: Linux Egcs <egcs at cygnus dot com>
- Organization: Computer Science Dept, Bristol University
- References: <Pine.LNX.4.05.9810172315110.588-100000@tahallah.demon.co.uk>
Alex Buell wrote:
>
> I've been trying to get an old C++ program to compile and one of the error
> messages I've seen is the one as below:
>
> ../dagCL/AssocArray.h:48: warning: ANSI C++ forbids declaration `dagAssocArray' with no type
>
> What does this means, and is there an option to pass to the compiler to
> tell it to pretend it's an old C++ compiler to get around this message?
It's a *warning* not an error -- the word `warning' should have given
you a clue :-)
without seeing AssocArray.h, I assume the compiler's telling you that
dagAssocArray;
is no longer legal, the correct syntax is now
int dagAssocArray;
I.e. no implicit int any more.
NB -- `old C++ compiler' -- which particular variant of C++ do you mean?
(rhetorical question).
nathan
--
Dr Nathan Sidwell :: Computer Science Department :: Bristol University
You can up the bandwidth, but you can't up the speed of light
nathan@acm.org http://www.cs.bris.ac.uk/~nathan/ nathan@cs.bris.ac.uk