What does this error message means?

Nathan Sidwell nathan@acm.org
Sun Oct 18 08:53:00 GMT 1998


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



More information about the Gcc mailing list