3.2. Libraries used by the example code

The libraries and library objects listed in Table 2 are linked to in the example code and are expected to be used by most applications. This is intended only as a reference and a starting point for the legal checks you should carry out on the compatibility of the various licenses covering the libraries you need to use.

Table 2. Libraries used in the example makefiles

libc.so.6, libc_nonshared.aThese constitute the main GNU C library (glibc). All of the examples provided link to the dynamic library plus the non-shared portions in libc_nonshared.a. In most cases this will be preferred, as you will only require one copy of the library in your target's filesystem. Alternatively, for a standalone, statically-linked application you can link to libc.a.
libm.so.6This is the math library accompanying glibc.
crt1.o, crti.o, crtn.oThese objects contain the GNU application startup code, including the entry point function _start
libgcc_s.so libgcc.aThese are the compiler helper functions included with GCC. These include ABI functions that are not part of the standard C library, for example the division functions.
libstdc++.so.6, libsupc++.aThese are the GCC C++ libraries, including the standard template library and support functions. These are not needed if your application uses only C code.
Copyright © 2005-2006. All rights reserved.DAI0150B