www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/10/19:26:41

From: ChrHenz AT aol DOT com
Message-ID: <2e8948e1.34e0ecf0@aol.com>
Date: Tue, 10 Feb 1998 19:12:30 EST
To: mwilliams AT utah-inter DOT net
Cc: djgpp AT delorie DOT com
Mime-Version: 1.0
Subject: Re: HELP!!!!

>#include <stdio.h>

>void main()

Normally it should always be "int main()", because the OS expects a return
value.

>{
>	printf("GO AWAY, MORON!\n");

Now "return 0;" should be inserted. RHide should then report "Exit Code 0".
>}

>     My problem is that if I try to run it from the DOS prompt, it
>says "program too big to load".

I also had that problem once, my prog wouldn't run at DOS-prompt but only in
RHide. After I corrected some minor bug, everthing worked fine again, so I
guess it could be your "void main()" that screws things up...
Christian.


- Raw text -


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