ldd(C)
ldd --
list dynamic dependencies
Syntax
ldd [-d | -r] file
Description
The ldd command lists the path names of all shared objects
that would be loaded as a result of executing file. If
file is a valid executable but does not require any shared
objects, ldd succeeds, producing no output.
ldd may also be used to check the compatibility of
file with the shared objects it uses. It does this by
optionally printing warnings for any unresolved symbol references
that would occur if file were executed.
ldd understands the following options:
-d-
Check all references to data objects.
-r-
Check references to both data objects and functions.
Only one of the -d and -r options may be given.
Diagnostics
ldd prints its record of shared object path names to
stdout. The optional list of symbol resolution problems
are printed to stderr. If file is not an
executable file or cannot be opened for reading, a non-zero exit
status is returned.
Warning
ldd does not list shared objects explicitly attached using
.dlopen(S-osr5)
ldd uses the same algorithm as the dynamic linker to
locate shared objects.
See also
cc(CP),
dlopen(S-osr5),
ld(CP)
Standards conformance
ldd is not part of any currently supported standard; it
was developed by UNIX System Laboratories, Inc. and is used by
permission.
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 03 June 2005