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 >
Text File  |  1996-09-03  |  4KB  |  112 lines

  1. *******************************************************************************
  2. *                                                                             *
  3. *                        LEDA  for DOS                                        *
  4. *                                                                             *
  5. *                       (WCC/ZTC/BCC/EMX)                                     *
  6. *                                                                             *
  7. *******************************************************************************
  8.  
  9.  
  10.   In this file I use <LEDA> to denote the path name of the LEDA main 
  11.   directory. It should contain the following files and subdirectories: 
  12.   
  13.   readme                    information about LEDA
  14.   install.dos               this file
  15.   changes  (please read !)  most recent changes
  16.   fixes                     bug fixes since last release
  17.   incl\                     LEDA include directory
  18.   src\                      LEDA source files
  19.   prog\                     example programs
  20.   demo\                     demo programs
  21.   Manual\                   user manual (TeX)
  22.   confdir\                  configuration directory
  23.   lconfig.bat               configuration command
  24.  
  25.  
  26.   LEDA has been successfully compiled unter MSDOS with Watcom C++ (wcc), 
  27.   Borland C++ (bcc), Zortech/Symantec C++ (ztc), EMX (g++), and DJGPP (g++).
  28.  
  29.   Note, however, that most of the example programs will work only in a 32-bit
  30.   flat memory context as supplied by the extended memory models of watcom, emx, 
  31.   djgpp, or zortech. 
  32.  
  33.  
  34.  
  35. 1. Configure Makefiles
  36. ----------------------
  37.   Go to the <LEDA> directory and call the "lconfig.bat" batch file
  38.   to configure the make files to work with your compiler and system:
  39.  
  40.   watcom  : lconfig wcc
  41.   borland : lconfig bcc
  42.   zortech : lconfig ztc
  43.   emx     : lconfig emx
  44.  
  45.   (type "lconfig" for a list of possible compilers)
  46.  
  47.  
  48.  
  49. 2. Compiling the Libraries
  50. --------------------------
  51.    You have to make the following libraries:
  52.  
  53.    libl.lib     basic library
  54.    libg.lib     graph library
  55.    libp.lib     plane library
  56.    libw.lib     graphics library
  57.  
  58.    Go to <LEDA> and call the batch file "make_lib".  
  59.  
  60.  
  61. 3. Installation of Headers and Libraries
  62. ----------------------------------------
  63.   All LEDA header files are in the directory  "<LEDA>\incl\leda". You 
  64.   have to create a directory "leda" in the C++ default include directory
  65.   (e.g. c:\watcomc\h\leda, c:\borlandc\include\leda, c:\zordos\include\leda, 
  66.         c:\emx\include, ...) and copy all files and subdirectories from 
  67.   "<LEDA>\incl\leda" to this directory.
  68.  
  69.   Then move all libraries <LEDA>\lib*.lib to the C++ default library directory
  70.   (e.g. \watcom\lib386, \borlandc\lib, \zordos\libdos,\emx\lib)
  71.  
  72.  
  73.  
  74.  
  75. 4. Compiling and Linking Application Programs
  76. ---------------------------------------------
  77.    Use the libraries as follows to compile and link programs
  78.    (see section 1.9 of the user manual):
  79.  
  80.    For programs using basic data types (<LEDA>\prog\basic):
  81.  
  82.    wcl386 -cc++ -x   prog.c libl.lib 
  83.    ztc    -cpp -mx   prog.c libl.lib 
  84.    bcc    -P -ml     prog.c libl.lib 
  85.    gcc    -xc++      prog.c -lL -lm
  86.  
  87.  
  88.    For programs using graph data types (<LEDA>\prog\graph):
  89.  
  90.    wcl386 -cc++ -x   prog.c libg.lib libl.lib 
  91.    ztc    -cpp -mx   prog.c libg.lib libl.lib 
  92.    bcc    -P -ml     prog.c libg.lib libl.lib 
  93.    gcc    -xc++      prog.c -lG -lL -lm
  94.  
  95.  
  96.    For programs using geometric data types (LEDA>\prog\plane):
  97.  
  98.    wcl386 -cc++ -x   prog.c libp.lib libg.lib libl.lib 
  99.    ztc    -cpp -mx   prog.c libp.lib libg.lib libl.lib 
  100.    bcc    -P -ml     prog.c libp.lib libg.lib libl.lib 
  101.    gcc    -xc++      prog.c -lP -lG -lL -lm
  102.  
  103.  
  104.    For programs using geometric data types and windows (<LEDA>\prog\demo):
  105.  
  106.    wcl386 -cc++ -x   prog.c libw.lib libp.lib libg.lib libl.lib
  107.    ztc    -cpp -mx   prog.c libw.lib libp.lib libg.lib libl.lib
  108.    bcc    -P -ml     prog.c libw.lib libp.lib libg.lib libl.lib
  109.    gcc    -xc++      prog.c -lW -lP -lG -lL -lm
  110.  
  111.  
  112.