Mail Archives: djgpp/2000/02/21/12:18:51
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 -