help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: g++ flag?


From: Paolitto Angelo
Subject: RE: g++ flag?
Date: Fri, 14 May 2004 14:47:14 +0200

> > Abhisek Sinha wrote:
> >
> >> Earlier compilers used to take the default return type of
> any function
> >> to be int.
> >> g++, in this case where ther is no return type specified
> gives error
> >> as
> >> error: ISO C++ forbids declaration of `main' with no type
> >
> > That is correct, it's illegal.
> >
> >> can this be disabled using any g++ flag in 3.3.3
>
> This is for backward compability and the compilation of legacy code, I
> think.

http://gcc.gnu.org/onlinedocs/gcc-3.3.3/gcc/C-Dialect-Options.html#C%20Dialect%20Options

HTH

C:\>iao Angelo


reply via email to

[Prev in Thread] Current Thread [Next in Thread]