delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/02/21/12:18:51

From: Weiqi Gao <weiqigao AT a DOT crl DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Little Problem
Date: Sun, 20 Feb 2000 23:46:13 -0600
Organization: CRL Network Services
Lines: 71
Message-ID: <38B0D125.7C2B189F@a.crl.com>
References: <20000220 DOT 180929 DOT -3659777 DOT 0 DOT redh0tchilipeprs AT juno DOT com>
NNTP-Posting-Host: a116008.stl1.as.crl.com
Mime-Version: 1.0
X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.12-20 i586)
X-Accept-Language: en
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

redh0tchilipeprs AT juno DOT com wrote:
> 
> I downloaded all of the files, edited my autoexec.bat file, and now i'm
> lost. The .env file comes up as a printmaster works envelope file. I cant
> find an execute file. I've got 50MB of uselessness. I read the Readme.1st
> file, scanned through the FAQ's and I still don't know where to start.
> I'm a begginer in programing. I've only had a comp since Dec. of 99. All
> i'm familiar w/ is basic. But if you would tell me how to get this thing
> going, I'll be set! I've spent about 80$ on book alone from C++ to Game
> Programing for Windows. Please respond w/ some help. Thank you for your
> time,

Assume you have downloaded all the required files (as indicated by the
zippicker), unzipped all of them into the same directory (C:\DJGPP,
probably?) with directory structure intact, and edited your AUTOEXEC.BAT
file as indicated in the README.1st file, then you have successfully
installed DJGPP.

To use DJGPP you need to open a DOS Prompt window, and start issue
commands from inside that window.

Let's open one right now (Start->Programs->DOS Prompt).  See the black
rectangle?  It has a prompt somewhat like

C:\>

at the top, and a blinking cursor right after it.  Now type

C:\> ECHO %DJGPP%

You should see something like

C:\DJGPP\DJGPP.ENV

in response, and a new prompt following that.  Now type

C:\> PATH

Youshould see a string of characters with C:\DJGPP\BIN as part of it,
separated from others by a semicolons.

C:\WINDOWS;C:\WINDOWS\COMMAND;C:\DJGPP\BIN; ...

Now type

C:\> echo int main(){} > junk.c

This will put a short C program into the junk.c file.  Now type

C:\> gcc junk.c

This will compile the junk.c file into a program called A.EXE .  Now
type

C:\> A.EXE

You shouldn't see anything, and the prompt will come back.

C:\>

If you have followed the above script and did not make the DOS prompt
angry, then congratulations, you have just compiled your first C
program.

If something goes wrong, then you come right back telling us EXACTLY 1)
what you typed, and 2) what the DOS Prompt responded.  And one of my
assistants will help you with it.

-- 
Weiqi Gao
weiqigao AT a DOT crl DOT com

- Raw text -


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