(DJGPP) GXX

A C++ Compiler is required for this course, however I'm not very fussy about the compiler you use, provided that it is ANSI compliant. We will be using only core C++ functionality, involving the use of classes and objects and the standard output. Here are some likely suggested compilers.

        Download from here!: 

DOS: DJGPP Download from here: http://www.delorie.com/djgpp/getting.html (Irish Mirror)
UNIX: Development Tools GCC - Difficult to install.

Note for DJGPP: The subdirectories are organized as follows: 



For DJGPP Version 2.01:

 v2		DJGPP Version 2.XX

 v2gnu		GNU programs built with/for djgpp V2

 v2tk		Toolkits for DJGPP V2 (libraries & etc)

 v2apps		Programs built for DJGPP V2

 v2misc		Other DJGPP V2 stuff







Within the Directory v2/

 Filename  Type   Length   Date  Description   (red - required, Derek)

================================================

ayuda-espanol.txt A     12,687 990819 

copying      A     17,982 981213 GPL License

copying.dj   A      1,997 981213 DJGPP V2 Copyright Notice

copying.lib  A     25,265 981213 LGPL License

djcrx202.zip B    587,302 981213 DJGPP V2.02 Cross-to-DOS Compiler Kit

djdev202.zip B  1,423,123 981213 DJGPP V2.02 Development Kit and Runtime

djlsr202.zip B  1,445,230 981213 DJGPP V2.02 Base Library Sources

djtst202.zip B    183,330 981213 DJGPP V2.02 Test Programs

djtzn202.zip B    478,878 981213 DJGPP V2.02 Time Zone Files

djtzs202.zip B    220,381 981213 DJGPP V2.02 Time Zone Sources

faq211b.zip  B    563,209 980916 FAQ 2.11

faq211p.zip  B  1,849,507 980917 FAQ 2.11 Printouts

faq211s.zip  B    265,594 980916 FAQ 2.11 Sources

frfaq21b.zip B    324,516 970216 FAQ en Francais

frfaq21s.zip B    174,818 970216 FAQ Sources en Francais

install.exe  B    187,033 990402 Install program for djgpp

lbint02s.zip B      6,289 990402 

lisezmoi.1er A     16,161 980506 DJGPP V2 ReadMe en Francais

readme.1st   A     13,684 981213 DJGPP V2 ReadMe

Once you have downloaded the Files in Red, run lbinstdj.exe (appears when you run the install.exe program). This will install the application in the chosen directory (default is c:\DJGPP).

Add these two lines to your AUTOEXEC.BAT file:


      set PATH=C:\DJGPP\BIN;%PATH%

      set DJGPP=C:\DJGPP\DJGPP.ENV

if they are required (in Win NT/2000) add these entries to the system->environment variables as in the case of Java described above. Remember to check the FAQ in C:\DJGPP\FAQ\djgppfaq.html.

How do I compile and link programs? Here are several simple commands:
Compile a single C source cprog.c into cprog.exe:
     

		gcc -o cprog.exe cprog.c

Compile a C++ source cxxprog.cc into cxxprog.exe:
      

		gxx -o cxxprog.exe cxxprog.cc

Compile several C/C++ source files into object files:

		gcc -c cfile1.c cxxfile2.cc

Link several *.o object files into myprog.exe:
      

		gxx -o myprog.exe cfile1.o cxxfile2.o

To compile with optimizations, add the -O2 switch to the command line. In addition, use of the -Wall switch is highly recommended: it turns on many useful diagnostic messages.