gcc v3.0.1 vs gcc v2.95.3 -- KDE 2.2.1
Giorgos Keramidas
charon at labs.gr
Sat Dec 1 21:09:01 EET 2001
On 2001-11-29 16:21:28, Antonis Kanavouras wrote:
>
> Christos Ricudis wrote:
>
> > V> to mono poy diafonoysa kai diafono einai to "void main()". Ola ta
> >
> > E profanws, to mono pragma sto opoio 8a diafwnouses esy einai kati sto
> opoio oi
> > exontes thn anti8eth apopsh einai 100% swstoi :>
> >
>
> An katalava kala -mia kai den exw asxolh8ei- o gcc 3.0.1 den sou epitrepei
> na kaneis compile oute
> ---------------------
> #include <stdio.h>
>
> void main(){
> printf("Hello World! Eimai enas xalaros typaklas pou den ton noiazei ti
> exit code epistrefei sto leitourgiko tou\n");
> }
> --------------------
Exeis ki alla problhmata edw...
To `void main()' den einai plhres prototype mias function, ara to
`main' den einai orismeno plhrws san function, se auto to shmeio.
Den einai mono to `void' pou se xalaei edo, alla kai to oti ta
arguments ths main() den einai orismena.
warning: type mismatch with previous implicit declaration
warning: previous implicit declaration of `main'
warning: `main' was previously implicitly declared to return `main'
-giorgos
More information about the Linux-greek-users
mailing list