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
> 

  in old C/C++ you can omit int as name of type.
  i. e. write f(x)  instead int f(int x)


> 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?

  -traditional

> 
> 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

-- 
    @=                                   
     //RSSH                             
mailto:Ruslan@Shevchenko.Kiev.UA

CORBA in Ukraine & ex-USSR: http://www.corbadev.kiev.ua


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