Mail Archives: djgpp/1998/04/14/08:53:00
On 14 Apr 1998, Tilo Johannsen wrote:
> erstes.c:1: undefined or invalid # directive
It is indeed invalid, see below.
> erstes.c:3: warning: return-type defaults to `int`
You should say "int main".
> erstes.c: In function `main`:
> erstes.c:4: warning: implicit declaration of function `printf`
This is because it didn't include <stdio.h>, due to the typo.
> erstes.c:5: warning: control reaches end of non-void function
This is because `main' defaults to int, but you don't have any `return'
statement in it.
> #inckude <stdio.h>
^^^^^^^
Should be include, not inckude.
> main()
Should be "int main".
> I am still waiting to compile my first exe......who can help my.
It is much more efficient to get some book about C programming and study
it. This is not the right place to ask questions about basic C syntax.
- Raw text -