This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: What does this error message means?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]