home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
ledar34.zip
/
leda-r-3_4_tar
/
LEDA-3.4
/
INSTALL.DOS
< prev
next >
Wrap
Text File
|
1996-09-03
|
4KB
|
112 lines
*******************************************************************************
* *
* LEDA for DOS *
* *
* (WCC/ZTC/BCC/EMX) *
* *
*******************************************************************************
In this file I use <LEDA> to denote the path name of the LEDA main
directory. It should contain the following files and subdirectories:
readme information about LEDA
install.dos this file
changes (please read !) most recent changes
fixes bug fixes since last release
incl\ LEDA include directory
src\ LEDA source files
prog\ example programs
demo\ demo programs
Manual\ user manual (TeX)
confdir\ configuration directory
lconfig.bat configuration command
LEDA has been successfully compiled unter MSDOS with Watcom C++ (wcc),
Borland C++ (bcc), Zortech/Symantec C++ (ztc), EMX (g++), and DJGPP (g++).
Note, however, that most of the example programs will work only in a 32-bit
flat memory context as supplied by the extended memory models of watcom, emx,
djgpp, or zortech.
1. Configure Makefiles
----------------------
Go to the <LEDA> directory and call the "lconfig.bat" batch file
to configure the make files to work with your compiler and system:
watcom : lconfig wcc
borland : lconfig bcc
zortech : lconfig ztc
emx : lconfig emx
(type "lconfig" for a list of possible compilers)
2. Compiling the Libraries
--------------------------
You have to make the following libraries:
libl.lib basic library
libg.lib graph library
libp.lib plane library
libw.lib graphics library
Go to <LEDA> and call the batch file "make_lib".
3. Installation of Headers and Libraries
----------------------------------------
All LEDA header files are in the directory "<LEDA>\incl\leda". You
have to create a directory "leda" in the C++ default include directory
(e.g. c:\watcomc\h\leda, c:\borlandc\include\leda, c:\zordos\include\leda,
c:\emx\include, ...) and copy all files and subdirectories from
"<LEDA>\incl\leda" to this directory.
Then move all libraries <LEDA>\lib*.lib to the C++ default library directory
(e.g. \watcom\lib386, \borlandc\lib, \zordos\libdos,\emx\lib)
4. Compiling and Linking Application Programs
---------------------------------------------
Use the libraries as follows to compile and link programs
(see section 1.9 of the user manual):
For programs using basic data types (<LEDA>\prog\basic):
wcl386 -cc++ -x prog.c libl.lib
ztc -cpp -mx prog.c libl.lib
bcc -P -ml prog.c libl.lib
gcc -xc++ prog.c -lL -lm
For programs using graph data types (<LEDA>\prog\graph):
wcl386 -cc++ -x prog.c libg.lib libl.lib
ztc -cpp -mx prog.c libg.lib libl.lib
bcc -P -ml prog.c libg.lib libl.lib
gcc -xc++ prog.c -lG -lL -lm
For programs using geometric data types (LEDA>\prog\plane):
wcl386 -cc++ -x prog.c libp.lib libg.lib libl.lib
ztc -cpp -mx prog.c libp.lib libg.lib libl.lib
bcc -P -ml prog.c libp.lib libg.lib libl.lib
gcc -xc++ prog.c -lP -lG -lL -lm
For programs using geometric data types and windows (<LEDA>\prog\demo):
wcl386 -cc++ -x prog.c libw.lib libp.lib libg.lib libl.lib
ztc -cpp -mx prog.c libw.lib libp.lib libg.lib libl.lib
bcc -P -ml prog.c libw.lib libp.lib libg.lib libl.lib
gcc -xc++ prog.c -lW -lP -lG -lL -lm