delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/12/31/08:30:23

From: fprintf AT iname DOT com (Stuart Hall)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Hello world isn't working :(
Date: Thu, 31 Dec 1998 13:29:46 GMT
Organization: Connix - The Connecticut Internet Exchange
Lines: 44
Message-ID: <368c7bc8.1978914@news>
References: <19981230212654 DOT 7570 DOT rocketmail AT send102 DOT yahoomail DOT com>
NNTP-Posting-Host: m5.aetna.com
Mime-Version: 1.0
X-Newsreader: Forte Agent 1.5/32.452
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I'm new at this too, but I saw two potential problems...

On Wed, 30 Dec 1998 13:26:54 -0800 (PST), Essidartha Emerald
<essidartha AT yahoo DOT com> so kindly spent valuable time writing:

>
>
>My hello world doen't work :( how can this be??
>
>#include 
^^^^^^^^^^^
What do you want to #include?  My first statements are usually
#include <stdio.h>


>
>int main()
>{
>  printf("Hello world!\n");
>  exit(0);
^^^^^^^^
I believe this function requires another header file (that's what the
#include statements are for).  More simply you could just change this
to:  

return 0;


>}
>
>I got the message:
>
>get program exit code -1 (oxffffffff)
>0 is Zero
>Is there something wrong with the code or is the compiler not working
>right or what did I do wrong?
>
>I have tried it a few times.


- ratboy
(don't be surprised if you email me and the response
comes back from somewhere else - iname.com is just a 
forwarding service)

- Raw text -


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