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:
- Follow-Ups:
- Re: GCC
- From: Mike M <linux-support@earthlink.net>
- References:
- GCC
- From: Debian User <bfarnell@knology.net>
- Re: GCC
- From: Roberto Sanchez <rcsanchez97@yahoo.es>
- Re: GCC
- From: Mike M <linux-support@earthlink.net>
- Re: GCC
- From: Werner Mahr <werner@vollstreckernet.de>