TLIB64.EXE, the Library Manager for 64-bit Windows

From RAD Studio

Go Up to Command-Line Utilities Index

TTLIB64.EXE is a library manager that deals with C++Builder 64-bit Windows object files and libraries:

  • The object files are ELF format with a .o extension.
  • The libraries are in GNU ar format with a .a extension.

TLIB64 also can manage OMF files, just like TLIB.EXE, its 32-bit Windows counterpart. In help topics that describe the use of TLIB, any steps or descriptions that pertain to TLIB.EXE can also pertain to TLIB64.EXE. For more information about using TLIB64, see TLIB.EXE, the Library Manager.

Run TLIB64 with the \A Switch on 64-bit Windows

To enable ELF format libraries with TLIB64, you must specify the /A option on the command line:

/A 

(write GNU AR format archive with ELF objs)

Command Line Help

Here is the command line help for TLIB64.EXE:

TLIB64 7.3 Copyright (c) 1987-2026 Embarcadero Technologies, Inc.
Syntax: TLIB [options] libname [ operands ] [, listfile]
    options     switches beginning with '/' (see below); optional
    libname     library file pathname (required)
    operands    modules/files to act on (see below); zero or more
    , listfile  optional listing file, introduced by a comma

New syntax (simpler for scripts and tooling):
  With /N the old +/- operators are disabled, so '+' and '-' may
  appear in file names. Set a default action, then list plain
  file/module names; the action holds for every following operand
  until you set a different one, so one command can mix actions.
    /N          select new syntax
    /a          add module to the library
    /d          delete module from the library
    /e          extract module without removal
    /r          replace module in the library
    /u          update module: replace it, or add it if not present
    /x          extract module and remove it from the library
  Example: TLIB mylib /N /a add1.obj add2.obj /d drop.obj

Old syntax (command operators; the default): each operand is
[<symbol>]module; a symbol sets that operand's action, overriding
any default.
    /O          select old syntax (the default)
    +           add module (does NOT replace an existing member; use -+)
    -           delete module from the library
    *           extract module without removing it
    -+ or +-    replace module in the library
    -* or *-    extract module and remove it

General switches:
    /8          output encoding is utf-8
    /F          force new library
    /Q          quiet: reduce output messages

OMF library switches:
    /0          purge comment records
    /1          purge like /0 but keep the compiler-version comment
    /C          case-sensitive library
    /E          build the extended dictionary
    /L          write listfile to stdout
    /Pnn        set the library page size to nn

GNU ar / ELF archive switches:
    /A          write GNU AR format archive with ELF objs
    /Z          zero AR member timestamps for reproducible builds

Response files (read further arguments from a file or stdin):
    @filepath   read further arguments from filepath
    /B          response-file lines are newline-terminated, so no
                trailing '&' is needed (recommended)
    &           otherwise, end each continued line with '&'
                (the final line takes none)

See Also