To compile applications using the COMPACT versions of the
Tale Graphics Driver you have to set these compiler
options:

Instruction Set:
80186 (or higher)

Memory Model:
Compact

Procedure Calling Convention:
C

Generate Underbars: (forces the C compiler to add an
On		     underscore in front of each procedure
		     name)

Word Alignment:
On


In the following parts of this text it is assumed that all
files to compile, all project files, all TGD header and
object files are present in the Tale Graphics Driver main
directory - as suggested by setup.txt.

To be able to call functions of the Tale Graphics Driver
include in your program the following line(s):

#include "tgdlp4.h"
#include "tgdsupp.h" (if you want to use functions of the
		      TGD support library)
#include "lp4supp.h" (if you want to use functions of the
		      LP4 support library)

after compiling, link the resulting .OBJ file with
tgdlp4sc.obj (and tgdsuppc.obj/lp4suppc.obj if you use any
function of the TGD/LP4 support libraries).


Compiling the demos:

If your compiler is Turbo C++ or Borland C++ load the
.PRJ files of the demos and change the output and source
directory names under Options|Directory to the name of
the graphics driver main directory. Change the include and
library directory names to the settings you use in your
other projects. Then go into the Compile menu and execute
a Build all.

If another compiler is used set the compiler options as
mentioned at the start of this document. Compile the demos
and link the following .OBJs to them:

for demo.c:
tgdlp4sc.obj
tgdsuppc.obj
lp4suppc.obj

for hello.c:
tgdlp4sc.obj
tgdsuppc.obj


Re-compiling the TGD/LP4 support libraries:

The TGD/LP4 support libraries were compiled under
Turbo C++ 3.0. If you use another compiler you may want to
recompile the libraries. To do this, set the compiler
options as described in the beginning of this document and
compile TGDSUPP.C/LP4SUPP.C.
The generated TGDSUPP.OBJ/LP4SUPP.OBJ are self contained -
you don't have to link any other .OBJ file to them.
For compability reasons rename the resulting TGDSUPP.OBJ to
TGDSUPPC.OBJ and LP4SUPP.OBJ to LP4SUPPC.OBJ.
