03-29-2001
A library is a file containing several object files, that can be used as a single entity in a linking phase of a program. Normally the library is indexed, so it is easy to find symbols (functions, variables and so on...) in them. For this reason, linking a program whose object files are ordered in libraries is faster than linking a program whose object files are separate on the disk. Also, when using a library, we have fewer files to look for and open, which even further speeds up linking.
Static libraries are just collections of object files that are linked into the program during the linking phase of compilation, and are not relevant during runtime.
Static libraries are commonly named libname.a. The .a suffix refers to <b>a</b>rchive
dynamic libraries (also called Shared libraries) are lbrararies in which modules can be bound into the executable program at runtime. when the program is started, a program in the system (called a dynamic loader) checks out which shared libraries were linked with the program, loads them to memory, and attaches them to the copy of the program in memory.
Dynamic libraries are commonly named libname.so. The .so suffix refers to <b>s</b>hared <b>o</b>bject.
9 More Discussions You Might Find Interesting
1. Programming
I can not locate package sys/mkdev.h on HP-UX or Linux. Is it a special package or something? (9 Replies)
Discussion started by: laila63
9 Replies
2. IP Networking
How is Libnet and libpcap are useful in sending a packet through DLL layer
and sniff network layer?
and how sinffers are used to track ip adresses provided Mac adresses? (1 Reply)
Discussion started by: netsavy
1 Replies
3. IP Networking
Hello friends I'm running Redhat 9.0 with linux kernel 2.4.20-8 & have iptables version 1.2.7a & encountering a problem that I narrate down.
I need to apply patch to my iptable and netfilter for connection tracking and load balancing that are available in patch-o-matic distribution by netfilter.... (0 Replies)
Discussion started by: Rakesh Ranjan
0 Replies
4. UNIX for Dummies Questions & Answers
I am slowly ploughing my way through the list of links to on-line tutorials you provided to newbies. I for one am grateful for such a comprehensive list, so first of all thank you for that.
What i cannot seem to find, is information on C++ libraries:
The two links on libraries in your list... (0 Replies)
Discussion started by: pil888
0 Replies
5. UNIX for Advanced & Expert Users
Does anyone know of any tools that manage the rollout of patches across multiple types of Unix platform ( eg Solaris, Aix etc ).
I am looking for something that does a similiar job to SMS or WSUS in the Windows world (3 Replies)
Discussion started by: jimthompson
3 Replies
6. Shell Programming and Scripting
Hello,
I need to use two different libraries like /usr/local/bin/expect and /usr/bin/ksh at the same script. Is it possible? (4 Replies)
Discussion started by: fozay
4 Replies
7. Programming
I'm a rookie to C and i'm looking for some libraries to learn,something likes the C++ STL or Boost ,does any1 can tell me some of them?Thanks a lot:)
Eric (3 Replies)
Discussion started by: homeboy
3 Replies
8. UNIX for Dummies Questions & Answers
Hello,
I met a problem when running a java program. When I did the debugging:
srna/ExeFiles/linux$ ldd patman
linux-gate.so.1 => (0xf77b5000)
libpopt.so.0 => not found
libstdc++.so.6 => not found
libm.so.6 => /lib32/libm.so.6 (0xf7778000)
libgcc_s.so.1 => not found
... (5 Replies)
Discussion started by: yifangt
5 Replies
9. Shell Programming and Scripting
hi all,
i need to check the latest patch applied on my unix server. here is the server info:
bash-3.2$ uname -a
SunOS usa0300uz1226 5.10 Generic_148888-01 sun4u sparc SUNW,SPARC-Enterprise
please tell which is the command for checking patch? (1 Reply)
Discussion started by: lovelysethii
1 Replies
LEARN ABOUT DEBIAN
jocamlmklib
JOCAMLMKLIB(1) General Commands Manual JOCAMLMKLIB(1)
NAME
jocamlmklib - generate libraries with mixed C / Caml code.
SYNOPSIS
ocalmklib [options] files
DESCRIPTION
The jocamlmklib command facilitates the construction of libraries containing both Caml code and C code, and usable both in static linking
and dynamic linking modes.
OPTIONS
-h, --help
Show summary of options.
-cclib lib
C library passed to jocamlc -a or jocamlopt(1) -a only.
-ccopt opt
C option passed to jocamlc(1) -a or jocamlopt(1) -a only.
-custom
Disable dynamic loading.
-dllpath dir
Add dir to the run-time search path for DLLs.
-I dir Add dir to the path searched for Caml object files.
-failsafe
Fall back to static linking if DLL construction failed.
-ldopt opt
C option passed to the shared linker only.
-linkall
Build Caml archive with link-all behavior.
-llib Specify a dependent C library.
-Ldir Add dir to the path searched for C libraries.
-jocamlc cmd
Use cmd in place of jocamlc(1).
-jocamlopt cmd
Use cmd in place of jocamlopt(1).
-o name
Generated Caml library is named name.cma or name.cmxa.
-oc name
Generated C library is named dllname.so or libname.a.
-rpath dir
Same as -dllpath dir.
-Rdir Same as -rpath.
-verbose
Print commands before executing them.
-Wl, -rpath dir
Same as -dllpath dir.
-Wl, -rpath -Wl dir
Same as -dllpath dir.
-Wl, -Rdir
Same as -dllpath dir.
-Fdir Specify a framework directory (MacOSX).
-framework name
Use framework name (MacOSX).
SEE ALSO
jocamlc(1), jocamlopt(1).
AUTHOR
This manual page was written by Samuel Mimram <samuel.mimram@ens-lyon.org>, for the Debian project (but may be used by others).
August 19, 2004 JOCAMLMKLIB(1)