ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/10/14:34:40

Message-ID: <34E0AAA8.6A17@utah-inter.net>
Date: Tue, 10 Feb 1998 12:29:44 -0700
From: Mike Williams <mwilliams AT utah-inter DOT net>
Reply-To: mwilliams AT utah-inter DOT net
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: HELP!!!!

Hope somebody can help me. I'm a real newbie to 'C' programming, trying
to teach myself with your fine software and a copy of "C for
Dummies"...an appropriate choice...:)
       The first lesson is how to compile, link and run a simple
(really, really simple) source file and produce an .exe file. It appears
to work, and produces an exe file, and doing an [ALT F5] shows an output
screen with the text as it should be. Once it's compiled, I get an "Exit
code 17" or "Exit code 22" in Rhide, but although it says "no errors" in
the lower window, it also says Access denied. I don't know if these
messages are normal; I didn't find anything in a quick look over the
FAQ's. My problem is that if I try to run it from the DOS prompt, it
says "program too big to load". I have plenty of spare RAM, both
conventional and extended, and the program size is 78Kb. I've tried it
on 3 different PC's now; a 486/66, Dos 6.2: a486 DX4/100 running Win95,
and a full-blown Pentium 220MMX. I've tried starting in DOS, or invoking
the DOS prompt from Windows, and I get the same message on all 3 PC's.
Any ideas?
	This is the source file:
#include <stdio.h>

void main()
{
	printf("GO AWAY, MORON!\n");
}
	
	As I say, after it's compiled, the output screen (ALT F5) says at the
bottom 
	C:>\RHIDE\MESSAGE
	GO AWAY, MORON!
which is what I expect, but it won't run by itself.
	I enter the source code, save it as message.c, then pull down the "RUN"
window, and select RUN. Am I doing something wrong there?
	It's driving me nuts, and I'm only on page 18 of the book!!
Hope somebody out there can help.
Mike

- Raw text -


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