Installing a binary distribution of GNU pascal for djgpp.

You need a working installation of djgpp v 2.03, 
which includes the corresponding version of the gcc compiler: gcc322b.zip,
at least all the files that this version of gcc puts into
the directory c:\djgpp\lib\gcc-lib\djgpp\3.22
You can concurently use an other version of gcc, gpc will
find the gcc files it needs in this directory.

Suppose the root directory is c:\djgpp 
and you have downloaded gpc322b.zip in the c:\temp directory.
Three steps:

1-- type
c:
cd c:\djgpp
unzip32 c:\temp\gpc322b.zip

2-- edit your c:\djgpp\djgpp.env file. 
It contains a section

[gcc]
LIBRARY_PATH=%/>;LIBRARY_PATH%%DJDIR%/lib

add the following two sections:

[gpc]
LIBRARY_PATH=%/>;LIBRARY_PATH%%DJDIR%/lib

[gpcpp]
C_INCLUDE_PATH=%/>;C_INCLUDE_PATH%%DJDIR%/include

3--edit the file c:\djgpp\info\dir
It contains a section

From gccNNNb.zip

* CPP: (cpp).
	The GNU C-Preprocessor

* GCC: (gcc).
	The GNU C, C++, and Objective-C Compiler


add the following section:

From gpcNNNb.zip

* GPC: (gpc).
	The GNU Pascal Compiler
	

It works ...

Now for compiling certain units you need some extra libraries, namely

gmp
     Arithmetic for integers, rationals and real numbers with arbitrary
     size and precision. Used by the GMP unit.

rx
     Regular expression matching and substitution. Used by the RegEx
     unit.

PDCurses
     Screen handling. Used by the CRT unit.
     
The sources are contained in the directory:

http://www.gnu-pascal.de/libs/

precompiled binaries for djgpp are contained in

http://www.gnu-pascal.de/libs/binary/i386-pc-msdosdjgpp/

Two of them are part of the djgpp distribution, and you can
find newer versions on simtelnet:

v2gnu/gmp41b.zip

v2tk/pdcur24b.zip

More informations are contained in c:\djgpp\doc\gpc.

Enjoy




