home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / glibs115.zip / doc / glib.txt < prev    next >
Text File  |  1993-03-20  |  3KB  |  133 lines

  1.  
  2.  
  3.  
  4. GLIB(1)                 Utility Commands                  GLIB(1)
  5.  
  6.  
  7.  
  8. NAME
  9.      glib - Library file (.LIB) manager for IBM OS/2 2.0 with GNU
  10.      GCC/2 C++ compiler
  11.  
  12. SYNOPSIS
  13.      glib _l_i_b_r_a_r_y _c_o_m_m_a_n_d ...
  14.  
  15. COMMANDS
  16.      -l -a _o_b_j_e_c_t -d _o_b_j_e_c_t -x _o_b_j_e_c_t -b _b_a_t_c_h_f_i_l_e
  17.  
  18. DESCRIPTION
  19.      _G_l_i_b adds, extracts and deletes object files (.obj)  from  a
  20.      library (.lib) file. The object and library file formats are
  21.      described in the Microsoft application notes  included  with
  22.      this package. Where a ".obj" extension is appropriate for an
  23.      option parameter it's inclusion is optional. If omitted  the
  24.      default  extension will be a lowercase ".obj".  This default
  25.      can be overriden by providing at least one extension of your
  26.      own. The object name can include zero or more wildcard, "*",
  27.      characters.
  28.  
  29. OPTIONS
  30.      _G_l_i_b accepts the following options.
  31.  
  32.      _l_i_b_r_a_r_y
  33.           This required option defines the library to be  created
  34.           or  opened.  The  option should include the .lib exten-
  35.           sion.
  36.  
  37.      -l   List the library contents. Each module name  is  listed
  38.           with it's public definitions.
  39.  
  40.      -a _o_b_j_e_c_t
  41.           Add object to library. The object will be added to  the
  42.           library  and  the library will be rebuilt. If an object
  43.           with the same name already exists  in  the  library  it
  44.           will be overwritten.
  45.  
  46.      -d _o_b_j_e_c_t
  47.           Delete object in library. The object  will  be  deleted
  48.           from the library and the library will be rebuilt.
  49.  
  50.      -x _o_b_j_e_c_t
  51.           Extract  object  from  libray.  The  object   will   be
  52.           extracted  from  the  library  and  written to filename
  53.           object.
  54.  
  55.      -b _b_a_t_c_h_f_i_l_e
  56.           Read commands from batchfile. With the exception of the
  57.           library  any  commands  can  be put in a batchfile. The
  58.           file should contain one option parameter pair per line.
  59.           No line continuation characters are needed.
  60.  
  61.  
  62.  
  63. GLIB 1.1.5          Last change: Mar 20 1993                    1
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. GLIB(1)                 Utility Commands                  GLIB(1)
  71.  
  72.  
  73.  
  74. EXAMPLES
  75.      List all the modules and publics in library libc.lib, add module
  76.      printf.obj and extract open.obj:
  77.  
  78.           glib libc.lib -l -a printf.obj -x open
  79.  
  80.      Perform exactly the same operations using a batch file instead of
  81.      options on the command line:
  82.  
  83.           glib libc.lib -l -b lib.bat
  84.  
  85.      The contents of the batch file, lib.bat, are:
  86.  
  87.              -a printf.obj
  88.              -x open
  89.  
  90.      Use a wildcard to extract all the objects from libc.lib:
  91.  
  92.              glib libc.lib -x *.obj
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129. GLIB 1.1.5          Last change: Mar 20 1993                    2
  130.  
  131.  
  132.  
  133.