Installing a binary distribution of GNU pascal for djgpp.

You need a working installation of djgpp v 2.05, 
which includes the corresponding version of the gcc compiler: gcc346b.zip,
at least all the files that this version of gcc puts into the directories
c:\djgpp\lib\gcc\djgpp\3.46 and c:\djgpp\libexec\gcc\djgpp\3.46
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 gpc346b.zip in the c:\temp directory.
Three steps:

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

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

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

add the following section:

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

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/gmp412b.zip

v2tk/pdcur24b.zip

Enjoy




