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

  1. *******************************************************************************
  2. *                                                                             *
  3. *                        LEDA  for OS/2                                       *
  4. *                                                                             *
  5. *                      (WCC / ICC / 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.os2               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
  22.   confdir\                  configuration directory
  23.   lconfig.cmd               configuration command
  24.  
  25.  
  26.   LEDA has been successfully compiled unter OS/2 with Watcom C++ (wcc), 
  27.   IBM CSet++ (icc) and  EMX (g++).
  28.  
  29.  
  30.  
  31. 1. Configure Makefiles
  32. ----------------------
  33.   Go to the <LEDA> directory and call the "lconfig.cmd" batch file
  34.   to configure the make files to work with your compiler:
  35.   watcom:  lconfig wcc
  36.   ibm:     lconfig icc
  37.   emx:     lconfig emx
  38.  
  39.  
  40. 2. Compiling the Libraries
  41. --------------------------
  42.    You have to make the following libraries:
  43.  
  44.    libl.lib     basic library
  45.    libg.lib     graph library
  46.    libp.lib     plane library
  47.    libw.lib     graphics library
  48.  
  49.    Go to <LEDA> and call the batch file "make_lib".  
  50.  
  51.  
  52. 3. Installation of Headers and Libraries
  53. ----------------------------------------
  54.   All LEDA header files are in the directory  "<LEDA>\incl\leda". You have 
  55.   to create a directory "leda" in the C++ default include directory and 
  56.   copy all files and subdirectories from "<LEDA>\incl\leda" to this directory.
  57.   Then move all libraries <LEDA>\lib*.lib to the C++ default library directory.
  58.  
  59.  
  60. 4. Compiling and Linking Application Programs
  61. ---------------------------------------------
  62.    Use the libraries as follows to compile and link programs
  63.    (see section 1.9 of the user manual):
  64.  
  65.    For programs using basic data types (<LEDA>\prog\basic):
  66.  
  67.    wcl386 -cc++ -zq -x -k32k  prog.c libl.lib 
  68.    icc    -Tdp                prog.c libl.lib
  69.    gcc    -xc++               prog.c -lL -lm -liostream
  70.  
  71.  
  72.    For programs using graph data types (<LEDA>\prog\graph):
  73.  
  74.    wcl386 -cc++ -zq -x -k32k  prog.c libg.lib libl.lib 
  75.    icc    -Tdp                prog.c libg.lib libl.lib 
  76.    gcc    -xc++               prog.c -lG -lL -lm -liostream
  77.  
  78.  
  79.    For programs using geometric data types (<LEDA>\prog\plane):
  80.  
  81.    wcl386 -cc++ -zq -x -k32k  prog.c libp.lib libg.lib libl.lib 
  82.    icc    -Tdp                prog.c libp.lib libg.lib libl.lib 
  83.    gcc    -xc++               prog.c -lP -lG -lL -lm -liostream
  84.  
  85.  
  86.  
  87.    For programs using geometric data types and windows (<LEDA>\prog\demo):
  88.  
  89.    wcl386 -cc++ -zq -x -k32k  prog.c libw.lib libp.lib libg.lib libl.lib
  90.    rc leda.res prog.exe
  91.  
  92.    icc    -Tdp                prog.c libw.lib libp.lib libg.lib libl.lib
  93.    rc leda.res prog.exe
  94.  
  95.    gcc  -o prog.pm -xc++      prog.c -lW -lP -lG -lL -lm -liostream
  96.    emxbind -bpq -rleda.res /emx/bin/emxl prog.pm
  97.  
  98.  
  99.