home *** CD-ROM | disk | FTP | other *** search
- *******************************************************************************
- * *
- * LEDA for MS-DOS *
- * *
- * (TURBO C++) INSTALLATION *
- * *
- *******************************************************************************
-
- WARNING:
-
- LEDA has been developed under UNIX with AT&T and GNU compilers.
- No work has been invested in testing LEDA on PC's under MS-DOS.
- Only a few conditional preprocessor directives (#ifdef __TURBOC__)
- were inserted to make (parts of) the source code compilabe with TC++.
- You have to use memory model "huge" and the oldstyle stream library
- (oldstrmh.lib). See the "Makefile.dos" make scripts for additional
- informations.
-
- *******************************************************************************
-
-
- 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 informations about LEDA
- INSTALL.dos this file
- Changes most recent changes
- make_all.bat make batch file
- incl/ LEDA include directory
- src/ LEDA source files
- prog/ example programs
-
-
-
- 1. HEADER FILES (cf. section 1.8 of the user manual)
- ---------------
-
- All LEDA header files are in the directory <LEDA>/incl
- You first have to create a directory with name "LEDA"
- in the TC++ default include directory (e.g., \tc\include\LEDA)
- and copy all header files (*.h) from "<LEDA>/incl" to
- this directory.
-
-
-
- 2. LIBRARIES (cf. section 1.9 of the user manual)
- ------------
-
- You have to make the following libraries:
-
- leda_l.lib (main library libL.a)
- leda_g.lib (graph library libG.a)
- leda_p.lib (plane library libP.a)
-
-
- To do this, go to the LEDA main directory and call the
- batch file "make_all.bat". Then you can move the libraries to
- the TC++ default library directory (\tc\lib)
-
-
- Use the libraries as follows to compile and link programs
- (see section 1.9 of the user manual):
-
- For programs using basic data types:
-
- tcc -P -Qx -w- -mh prog.c leda_l.lib oldstrmh.lib
-
-
-
- For programs using graph data types:
-
- tcc -P -Qx -w- -mh prog.c leda_g.lib leda_l.lib oldstrmh.lib
-
-
-
- For programs using geometric data types:
-
- tcc -P -Qx -w- -mh prog.c leda_p.lib leda_g.lib leda_l.lib oldstrmh.lib
-
-
-
-
- 3. EXAMPLE PROGRAMS
- -------------------
-
- Example programs can be found on <LEDA>/prog/...
- to compile them use "make -fmakefile.dos ..."
-
-
-
- 4. DIFFERENT COMPILER
- ---------------------
- If you want to use a different C++ compiler check the
- "#if(n)def __TURBOC__" source code lines.
-
-
-