How to compile a single file program using DJGPP
This file will eventually contain the step by step information how to use
RHIDE - a so called integrated environment for DOS GNU Compilers (DJGPP). Before
that happens use the following rough guide:
- Open a DOS Window
- Type RHIDE
- Familiarize yourself with the menu system. It is rather self explanatory.
Locate the following commands:
- NEW, SAVE and LOAD (inside FILE submenu) - ever used a
word processor before?
- MAKE (inside COMPILE submenu) - that is used to compile progrmas
- RUN (inside RUN submenu) - that is used to run programs once they can
be compiled without errors
- USER SCREEN (inside WINDOW submenu, at the bottom) - used to have a
last look at your program after it concludes and vanishes from the screen.
- EXIT (inside FILE submenu) - to exit the program. Do not exit by
double clicking on the window!
- When saving a new program file you must use one of the following file
extensions (dot and up to three letters):
- .C for pure C programs
- .CPP for C++ programs - use this for our lass activities
- .FOR for FORTRAN programs
- .P for PASCAL programs
- .PL for PERL programs (actually currently not supported by RHIDE)
The file extensions are used by this system do determine which compiler should
be used. (What language is used.)
Have some fun with programming.