


GLIB(1)                 Utility Commands                  GLIB(1)



NAME
     glib - Library file (.LIB) manager for IBM OS/2 2.0 with GNU
     GCC/2 C++ compiler

SYNOPSIS
     glib _l_i_b_r_a_r_y _c_o_m_m_a_n_d ...

COMMANDS
     -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

DESCRIPTION
     _G_l_i_b adds, extracts and deletes object files (.obj)  from  a
     library (.lib) file. The object and library file formats are
     described in the Microsoft application notes  included  with
     this package. Where a ".obj" extension is appropriate for an
     option parameter it's inclusion is optional. If omitted  the
     default  extension will be a lowercase ".obj".  This default
     can be overriden by providing at least one extension of your
     own. The object name can include zero or more wildcard, "*",
     characters.

OPTIONS
     _G_l_i_b accepts the following options.

     _l_i_b_r_a_r_y
          This required option defines the library to be  created
          or  opened.  The  option should include the .lib exten-
          sion.

     -l   List the library contents. Each module name  is  listed
          with it's public definitions.

     -a _o_b_j_e_c_t
          Add object to library. The object will be added to  the
          library  and  the library will be rebuilt. If an object
          with the same name already exists  in  the  library  it
          will be overwritten.

     -d _o_b_j_e_c_t
          Delete object in library. The object  will  be  deleted
          from the library and the library will be rebuilt.

     -x _o_b_j_e_c_t
          Extract  object  from  libray.  The  object   will   be
          extracted  from  the  library  and  written to filename
          object.

     -b _b_a_t_c_h_f_i_l_e
          Read commands from batchfile. With the exception of the
          library  any  commands  can  be put in a batchfile. The
          file should contain one option parameter pair per line.
          No line continuation characters are needed.



GLIB 1.1.5          Last change: Mar 20 1993                    1






GLIB(1)                 Utility Commands                  GLIB(1)



EXAMPLES
     List all the modules and publics in library libc.lib, add module
     printf.obj and extract open.obj:

          glib libc.lib -l -a printf.obj -x open

     Perform exactly the same operations using a batch file instead of
     options on the command line:

          glib libc.lib -l -b lib.bat

     The contents of the batch file, lib.bat, are:

             -a printf.obj
             -x open

     Use a wildcard to extract all the objects from libc.lib:

             glib libc.lib -x *.obj




































GLIB 1.1.5          Last change: Mar 20 1993                    2



