Default Libraries

The compiler allows you to use all the standard run-time libraries. By default, the compiler automatically expands a number of standard C, C++, and math library functions. For more information, see Inline Expansion of Library Functions.

The following libraries are supplied.

Library Description

libc.a

GNU* C library (included with Red Hat* Linux*)

libguide.a

for OpenMP* implementation

libsvml.a

short vector math library

libirc.a

Intel support library for PGO and CPU dispatch

libimf.a

Intel math library

libcprts.a

Dinkumware C++ Library

libunwind.a

Unwinder library

libcxa.a

Intel support library for EH and RTTI

If you want to link your program with alternate or additional libraries, specify them at the end of the command line. For example, to compile and link hello.cpp with mylib.a, use the following command:

The mylib.a library appears prior to the libimf.a library in the command line for the LINK linker.

Caution

The Linux system libraries and the compiler libraries are not built with the -align option.  Therefore, if you compile with the -align option and make a call to a compiler distributed or system library, and have long long, double, or long double in your interface, you will get the wrong answer due to the difference in alignment.  Any code built with -align cannot make calls to libraries that use these types in their interfaces unless they are built with -align (in which case they will not work without -align).

Math Libraries

In the compiler package, you received the Intel math library, libimf.a, which contains optimized versions of the math functions in the standard C run-time library. The functions in the library are optimized for program execution speed on the PentiumŪ processor.

To enable the optimized math library, the installation creates a directory for libimf.a and adds the new directory path to the LD_LIBRARY_PATH variable. Intel recommends you keep libimf.a in the first directory specified in the path.