delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/14/08:53:00

Date: Tue, 14 Apr 1998 15:50:13 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Tilo Johannsen <Tilo-Johannsen AT t-online DOT de>
cc: djgpp AT delorie DOT com
Subject: Re: newbie needs help
In-Reply-To: <6gutgb$73u$1@news02.btx.dtag.de>
Message-ID: <Pine.SUN.3.91.980414154538.5140B-100000@is>
MIME-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019