home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / diverses / leda / install.dos < prev    next >
Encoding:
Text File  |  1991-11-15  |  3.0 KB  |  97 lines

  1. *******************************************************************************
  2. *                                                                             *
  3. *                        LEDA   for MS-DOS                                    *
  4. *                                                                             *
  5. *                     (TURBO C++)  INSTALLATION                               *
  6. *                                                                             *
  7. *******************************************************************************
  8.  
  9.   WARNING:
  10.  
  11.   LEDA has been developed under UNIX with AT&T and GNU compilers. 
  12.   No work has been invested in testing LEDA on PC's under MS-DOS. 
  13.   Only a few  conditional preprocessor directives (#ifdef __TURBOC__)
  14.   were inserted to make (parts of) the source code compilabe with TC++.
  15.   You have to use memory model "huge" and the oldstyle stream library
  16.   (oldstrmh.lib). See the "Makefile.dos" make scripts for additional 
  17.   informations.
  18.  
  19. *******************************************************************************
  20.  
  21.  
  22. In this file I use <LEDA> to denote the path name of the LEDA main 
  23. directory. It should contain the following files and subdirectories: 
  24.  
  25. README                    informations about LEDA
  26. INSTALL.dos               this file
  27. Changes                   most recent changes
  28. make_all.bat              make batch file 
  29. incl/                     LEDA include directory
  30. src/                      LEDA source files
  31. prog/                     example programs
  32.  
  33.  
  34.  
  35. 1. HEADER FILES     (cf. section 1.8 of the user manual)
  36. ---------------
  37.   
  38.    All LEDA header files are in the directory  <LEDA>/incl
  39.    You first have to  create a directory with name "LEDA"
  40.    in the TC++ default include directory (e.g., \tc\include\LEDA)
  41.    and copy all header files (*.h) from "<LEDA>/incl" to
  42.    this directory.
  43.  
  44.  
  45.  
  46. 2. LIBRARIES      (cf. section 1.9 of the user manual)
  47. ------------
  48.  
  49.    You have to make the following libraries:
  50.  
  51.    leda_l.lib    (main  library libL.a)
  52.    leda_g.lib    (graph library libG.a)
  53.    leda_p.lib    (plane library libP.a)
  54.  
  55.  
  56.    To do this, go to the LEDA main directory and call the
  57.    batch file "make_all.bat".  Then you can move the libraries to
  58.    the TC++ default library directory (\tc\lib)
  59.  
  60.  
  61.    Use the libraries as follows to compile and link programs
  62.    (see section 1.9 of the user manual):
  63.  
  64.    For programs using basic data types:
  65.  
  66.    tcc -P -Qx -w- -mh  prog.c leda_l.lib oldstrmh.lib
  67.  
  68.  
  69.  
  70.    For programs using graph data types:
  71.  
  72.    tcc -P -Qx -w- -mh  prog.c leda_g.lib leda_l.lib oldstrmh.lib  
  73.  
  74.  
  75.  
  76.    For programs using geometric data types:
  77.  
  78.    tcc -P -Qx -w- -mh  prog.c leda_p.lib leda_g.lib leda_l.lib oldstrmh.lib  
  79.  
  80.  
  81.  
  82.  
  83. 3. EXAMPLE PROGRAMS
  84. -------------------
  85.  
  86.    Example programs can be found on  <LEDA>/prog/...
  87.    to compile them use "make -fmakefile.dos ..."
  88.  
  89.  
  90.  
  91. 4. DIFFERENT COMPILER
  92. ---------------------
  93.    If you want to use a different C++ compiler check the
  94.    "#if(n)def __TURBOC__"  source code lines.
  95.  
  96.  
  97.