From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: Installing DJGPP... Date: Wed, 16 Oct 1996 23:01:47 -0700 Organization: Three pounds of chaos and a pinch of salt Lines: 81 Message-ID: <3265CBCB.6FA8@cs.com> References: <3264514B DOT 7DF2 AT tiac DOT net> Reply-To: fighteer AT cs DOT com NNTP-Posting-Host: ppp226.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: whitmore AT tiac DOT net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Lance E. Whitmore wrote: > > Hi, > > I know your busy, and I hate to bug you with stupid questions...so > I'll get right to the point. I downloaded DJGPP V2 - > > djdev200.zip > gcc272b.zip > bnu252b.zip > txi360b.zip > faq201b.zip > csdpm1b.zip > gpp272b.zip > lgp271b.zip > > I then unzipped these (except the last 2 - For now I'm only concerned > with C. I'll work on C++ later) I read docs, and cannot figure out how > to install it! I've got a Packard Bell 486DX2 (66MHZ) running DOS. > Could you tell me what program I need to start, or command to use to > install this?!! (I also added the appropriate lines defining the path in > my AUTOEXEC.BAT file.) Can you help me out?!!!!! I am really looking > forward to using this!! Make sure you have also added the "SET DJGPP=..." line to your AUTOEXEC.BAT as well; it's critical for DJGPP programs to find the files they need. If you've done all that, and unzipped with the '-d' flag to recreate the directory structure, it is installed! Now, write a C program and follow the instructions in 'readme.1st' to compile it. Remember that djgpp is a command-line compiler, not an IDE-based compiler like Borland and Turbo C. You can use whatever editor you prefer to actually edit code, then save it as a .c file and use 'gcc' to compile it like so: > gcc -o myprog.exe myprog.c (Read: compile 'myprog.c' and produce 'myprog.exe' as output.) A more complex example of compilation might be: > gcc -Wall -O -g -o myprog.exe main.c files.c input.c (Read: compile 'main.c', 'files.c', and 'input.c', with all warnings enabled, standard optimization, and debugging support, and produce 'myprog.exe' as output.) Basically, all compiler options are controlled by switches you give it on the command line. Read the documentation for more information on how this works; since you did install txi360b.zip, just type 'info' to start up the DJGPP online hypertext browser. Other DJGPP tools you may consider getting include GNU Make (v2gnu/mak373b.zip) which allows you to build complex programs with very simple commands, the DJGPP library sources (v2/djlsr200.zip) which let you see exactly what goes into each DJGPP function, and the GNU debugger (v2gnu/gdb412b.zip) which is a source-level debugging utility. That said, there _are_ development environments available for DJGPP. Download the file 'v2apps/rhideb.zip' for a beta version of a Turbo Vision-based IDE designed specifically for DJGPP. For the ultimate in editing power, you can download and build GNU Emacs, pointers to which are in the FAQ (type "info faq"). Finally, a prototype DJGPP installer _is_ in the early development stages, but pretty much all it will do is perform the steps outlined in 'readme.1st' for you. :) If you have any problems getting DJGPP to work, _first_ examine the 'readme.1st' file to make sure you followed all the listed steps. Then, load the FAQ and do a search for the problem or error message you encountered. Then, and only then, post to the newsgroup/mailing list and we'll do our very best to help you out. :) -- John M. Aldrich, aka Fighteer I -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GCS d- s+:- a-->? c++>$ U@>++$ p>+ L>++ E>+ W++ N++ o+ K? w(---) O- M-- V? PS+ PE Y+ PGP- t+(-) 5- X- R+ tv+() b+++ DI++ D++ G e(*)>++++ h!() !r !y+() ------END GEEK CODE BLOCK------