www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/07/16/18:37:10

Date: Sun, 16 Jul 2000 18:21:50 +0600 (LKT)
From: Kalum Somaratna aka Grendel <kalum AT lintux DOT cx>
X-Sender: kalum AT roadrunner DOT grendel DOT net
To: Dan and Shelly <wedeking AT msa DOT attmil DOT ne DOT jp>
cc: djgpp AT delorie DOT com
Subject: Re: hello world program still not working
In-Reply-To: <8ks68a$8ht$1@newsflood.tokyo.att.ne.jp>
Message-ID: <Pine.LNX.4.21.0007161820120.3086-100000@roadrunner.grendel.net>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Sun, 16 Jul 2000, The awesome and feared Dan and Shelly commented thusly,

> I found out that I needed to download and extract the gcc program.  So I did
> that and tried the hello world program again using rhide.  I typed in:
> 
> #include

^^^^^^^^^^^^^^^^^^^^
Heres your problem, it should be #include <stdio.h>

> int main()
> {  
> printf("Hello world!\n");  
> exit(0);
> }
> 
> 
> But now when I try to run the above program in rhide, I get the error message that the
> #include is expecting a file name after it.  Did I forget to download something else beside the gcc program?

yes, just make that #include <stdio.h> and things will turn out fine...

Grendel

Hi, I'm a signature virus. plz set me as your signature and help me spread
:)

- Raw text -


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