DJGPP QuickStart Guide

  1. Come by Dr. Corley's office with 1 IBM formatted ZIP disk, 1 blank CD-R or CD-RW disk, or a set of seven formatted 3.5" 1.44 MB diskettes. (NOTE: Preparation of the floppy disk version will take up to 48 hours.)
  2. This installation procedure assumes you are running any version of Windows and your computer has at least 8 MB of RAM. If you will be installing the floppy disk version, go to step 3. Otherwise, use Windows Explorer to drag the "djgpp" folder from you CD-ROM or ZIP drive to the C: drive icon and proceed to step 5.
  3. Open an MS-DOS session from within Windows. Place DJGPP diskette number 7 in the disk drive (assumed to be drive A:) and type the following commands:
    C:
    cd \
    a:pkunzip -d a:djgpp
  4. Follow the prompts on the screen for inserting disks 1 through 7.
  5. Use the DOS EDIT program or the Windows Notepad program to add the following two lines to your C:\AUTOEXEC.BAT file:
    set DJGPP=C:\DJGPP\DJGPP.ENV
    set PATH=C:\DJGPP\BIN;%PATH%
  6. Reboot your computer.
  7. DJGPP is a DOS application. These distribution disks include the new RHIDE text-based integrated development environment. To use RHIDE, open a DOS session from within Windows. Create a directory for your project, e.g.,

    md \MEEN292\PROG2

    Change to that directory using

    cd \MEEN292\PROG2

    Create a project by typing

    RHIDE PROG2

    Once RHIDE starts, press the <INS> key to add a source file to the project. Use the .c file extension for regular C source files and the .cpp file extension for C++ files. Type the file name and press <ENTER> to add the file to the project. Press <ESC> to return to the main screen. Double click on the file name to bring up an edit window and enter the source code. Press <Ctrl-F9> to compile and run your program. You can press <Alt-F5> to switch between the IDE screen and the program output screen.
  8. Once you have debugged your program, you can run it and send program output to the printer by exiting the integrated environment and typing the program name followed by > prn. (For example prog2 > prn)
  9. On-line documentation is available using the info command.