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.W32 < prev    next >
Text File  |  1996-09-03  |  4KB  |  110 lines

  1.  
  2. *******************************************************************************
  3. *                                                                             *
  4. *                   LEDA  Windows-NT, Windows-95, WIN32s                      *
  5. *                                                                             *
  6. *              (Borland C++ 5.x, MSVC++ 4.x and Watcom 10.x)                  *
  7. *                                                                             *
  8. *******************************************************************************
  9.  
  10.  
  11.   In this file I use <LEDA> to denote the path name of the LEDA main 
  12.   directory. It should contain the following files and subdirectories: 
  13.   
  14.   readme                    information about LEDA
  15.   install.w32               this file
  16.   changes  (please read !)  most recent changes
  17.   fixes                     bug fixes since last release
  18.   incl\                     LEDA include directory
  19.   src\                      LEDA source files
  20.   prog\                     example programs
  21.   demo\                     demo programs
  22.   Manual\                   user manual
  23.   confdir\                  configuration directory
  24.   lconfig.bat               configuration command
  25.  
  26.  
  27.   LEDA has been successfully compiled under Windows-NT and Windows-95 with 
  28.   Borland C++ 5.o (bcc) Watcom C++ 10.x (wcc) and Microsoft Visual 4.x (msc).
  29.  
  30.  
  31.  
  32. 1. Configure Makefiles
  33. ----------------------
  34.   Go to the <LEDA> directory and call the "lconfig.bat" batch file
  35.   to configure the make files to work with your compiler and system:
  36.  
  37.   borland: lconfig bcc  [dll]
  38.   watcom : lconfig wcc  [dll]
  39.   MSVC++ : lconfig msc  [dll]
  40.  
  41.  
  42.   (type "lconfig" for a list of possible compilers/systems)
  43.  
  44.  
  45. 2. Compiling the Libraries
  46. --------------------------
  47.    Go to <LEDA> and call the batch file "make_lib". This will
  48.    create the following libraries:
  49.  
  50.    libl.lib   basic library
  51.    libg.lib   graph library
  52.    libp.lib   plane library
  53.    libw.lib   graphics library
  54.  
  55.  
  56.  
  57. 3. Installation of Headers and Libraries
  58. ----------------------------------------
  59.   All LEDA header files are in the directory  "<LEDA>\incl\leda". You 
  60.   have to create a directory "leda" in the C++ default include directory
  61.   and copy all files and subdirectories from 
  62.   "<LEDA>\incl\leda" to this directory.
  63.  
  64.   Then move all libraries <LEDA>\lib*.lib to the C++ default library directory
  65.  
  66.  
  67. 4. Compiling and Linking Sample and Demo Programs
  68. ---------------------------------------------
  69.    Go to one of the <LEDA>\prog\... subdirectories and call 
  70.  
  71.    make        (borland)
  72.    wmake -u    (watcom)
  73.    nmake       (microsoft)
  74.  
  75.  
  76.  
  77. 5. Compiling and Linking Application Programs
  78. ---------------------------------------------
  79.    Use the libraries as follows to compile and link programs
  80.    (see section 1.9 of the user manual):
  81.  
  82.    Programs using basic data types (\prog\[basic,dict]):
  83.  
  84.       bcc32  -P           prog.c libl.lib
  85.       wcl386 -cc++ -k128k prog.c libl.lib
  86.       cl    -Tp           prog.c libl.lib
  87.  
  88.  
  89.    Programs using graph data types (\prog\graph):
  90.  
  91.       bcc32  -P           prog.c libg.lib libl.lib
  92.       wcl386 -cc++ -k128k prog.c libg.lib libl.lib
  93.       cl     -Tp          prog.c libg.lib libL.lib
  94.  
  95.  
  96.    Programs using geometric data types (\prog\plane):
  97.  
  98.       bcc32  -P           prog.c libp.lib libg.lib libl.lib
  99.       wcl386 -cc++ -k128k prog.c libp.lib libg.lib libl.lib
  100.       cl     -Tp          prog.c libp.lib libg.lib libl.lib
  101.  
  102.  
  103.    Programs using geometric data types and windows (prog\[window,demo]):
  104.  
  105.      bcc32  -P           prog.c libw.lib libp.lib libg.lib libl.lib
  106.      wcl386 -cc++ -k128k prog.c libw.lib libp.lib libg.lib libl.lib
  107.      cl      -Tp         prog.c libw.lib libp.lib libg.lib libl.lib user32.lib gdi32.lib
  108.  
  109.  
  110.