delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/12/30/17:25:34

From: Erik Max Francis <max AT alcyone DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Hello world isn't working :(
Date: Wed, 30 Dec 1998 14:18:39 -0800
Organization: Alcyone Systems
Lines: 32
Message-ID: <368AA6BF.8B768A8F@alcyone.com>
References: <19981230212654 DOT 7570 DOT rocketmail AT send102 DOT yahoomail DOT com>
NNTP-Posting-Host: charmaine.alcyone.com
Mime-Version: 1.0
X-Mailer: Mozilla 4.5 [en] (X11; I; Linux 2.0.34 i686)
X-Accept-Language: en, eo
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Essidartha Emerald wrote:

> My hello world doen't work :( how can this be??
> 
> #include
> 
> int main()
> {
>   printf("Hello world!\n");
>   exit(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?

What is telling you what the error code is?  You don't say.

What headers are you #including?  You should be including both stdio
(for printf) and stdlib (for exit).

-- 
Erik Max Francis / email max AT alcyone DOT com / whois mf303 / icq 16063900
Alcyone Systems / irc maxxon (efnet) / finger max AT finger DOT alcyone DOT com
  San Jose, CA / languages En, Eo / web http://www.alcyone.com/max/
          USA / icbm 37 20 07 N 121 53 38 W / &tSftDotIotE
             \
            / The public is a fool.
           / Alexander Pope

- Raw text -


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