DJGPP QuickSetup Guide

DJGPP is a free yet powerful 32-bit C/C++ development system for Intel 80386+ PC's. It includes ports of many GNU development utilities.

The main site is located at DJ Delorie's Home Page where the most up-to-date information is available, including announcements, bug reports and fixes, FAQ lists, an online topic search program, software contributions, and more.


Getting Started

*** If you are new to DJGPP, I suggest that you read more about it first before downloading the entire package from ftp sites on the Internet.

* First things first, so get the FAQ lists faq102.zip and faq201b.zip, and read them carefully, especially Sections 1-3, which will help you get started.

The current versions of DJGPP are v1.12 and v2.00. I highly recommend v2, as has many advantages over v1, such as better ANSI-compliance, etc.


Obtaining the packages and installing them

*** Getting the documentation and reading them is very important. Online docs for DJGPP are in the txi*.zip package; also, each module has its own separate manual.

* The two versions of DJGPP have slightly different setups. Click on the version number to obtain specific information on each setup.

* All files should be unpacked by "pkunzip -d -o -n file.zip" or "unzip -fo file.zip." Maintenance files have to be installed last and in order: m1, m2,... After unzipping a maintenance file, you need to run a batch file that it installs before continuing with the next maintenance file.

*** There is also a minimal DJGPP package described in Section 3.6 of the FAQ list. The EZ-GCC version is about 5M compressed. Note: This is DJGPP v1.1x! You REALLY should get v2.00 as it is much better.


Building your first DJGPP program!

For those familiar with gcc, just go right ahead and type "gcc args..." Remember, DJGPP is gcc for DOS. For those new to gcc and/or command-line compilers in general, here's a quick guide to compiling, running, debugging, and profiling your programs.


Miscellaneous stuff

If you want to test whether your installation went smoothly, you can get the djtst*.zip file from the same place you got DJGPP from. Run the batch file and it will automatically do the compilation, linking, and testing.

People ask about IDE's, too. GNU Emacs has been ported to DOS, you might want to try that. I've also seen some nice enhanced editors/IDE's, try Aurora, Multi-Edit, or Boxer editor. I often use DOS Edit, with batch and make files. =)

There's a neat Borland-like IDE for DJGPP called RHIDE. Get it from http://www.tu-chemnitz.de/~rho/rhide.html.

Some more little tips: if your first program doesn't seem to want to compile/link, try doing "set > myenv.txt" at the prompt, and examine the myenv.txt file. See if your environment variables are properly set, as described here.

DJGPP might complain "Out of virtual memory" in an OS/2 DOS box; it has happened to me before. Just right click to get to the DOS box properties, and increase (DPMI) memory OS/2 gives it. Mine is set to 256M|ENABLED.

Redirecting stdout doesn't work very well under a plain DOS shell. Try using a smarter shell such as 4DOS. There's also another solution to this problem using the redir program, search for it in the mail archives.


Where to get help on DJGPP

First, read the FAQ list; try to see if what you're looking for is already there.

There are online docs in DJGPP; they are in the txi*.zip package. If you installed it, just type "info" to get into the top help node, or "info [topic...]" to go directly to a particular topic. Use the Tab, space-bar, Return , 'n', 'p', 'u' keys, etc. to navigate between pages and topics. Press 'q' to quit.

There is also a DJGPP newsgroup on Usenet and a DJGPP mailing list. (I think mail goes through the newsgroup so you don't need to subsribe to both.) The newsgroup name is "comp.os.msdos.djgpp"; to subsribe to the mailing list, send mail to listserv@delorie.com, with no subject and write "add [your e-mail address] djgpp" in the body. If you only want announcements, write "add [your e-mail address] djgpp-announce."

Another way to get more information on something is to search the mail-archives at the Turnbull site or DJ's homepage. I find many useful articles there.


Other DJGPP programs and libraries


Many thanks to DJ Delorie, Eli Zaretskii, Charles Sandmann and the rest of the DJGPP team!

9/28/96 icbm on EFNET IRC #c and #gamecode.

Mail me corrections/suggestions/complaints/crap at avly@remus.rutgers.edu

Copyright (C) 1995-96 avly@remus.rutgers.edu All Rights Reserved

All trademarks mentioned are of their respective companies.

Standard Disclaimer

There are absolutely no guarantees, expressed or implied, on anything that you find in this document. I cannot be held responsible for anything that results from the use or misuse of this document.