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

Re: GCC



On Tue, 17 Feb 2004, Werner Mahr wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Am Dienstag, 17. Februar 2004 06:27 schrieb Mike M:
>
> > main()
> > test.cpp:4: warning: ISO C++ forbids declaration of `main' with no type
>
> void main(void) and you have a type.
>

In C++ functions that don't take arguments are f() and not f(void).

Xavier



Reply to: