|Skip Navigation Links|
|Exit Print View|
|Oracle Solaris Studio 12.3 Overview Oracle Solaris Studio 12.3 Information Library|
Oracle Solaris Studio compilers make use of the operating system's native libraries. The Oracle Solaris operating system provides many system libraries installed in /usr/lib, including the C runtime libc and C++ runtime libCrun libraries. The intro(3) man page describes each library and refers to additional man pages for detailed information about each library. Type man intro.3 to view the page.
Most /usr/lib libraries have a C interface. The libc and libm libraries are linked by the cc and CC compiling systems by default, so you do not need to link to them explicitly. To link any other /usr/lib system library, use the appropriate -l option with the compiler. For example, to link the libmalloc library, specify -lmalloc on the cc and CC command line at link time.
Fortran runtime libraries are provided with Oracle Solaris Studio, not with the operating systems.
Fortran programs can also use the Oracle Solaris /usr/lib libraries that have a C interface. See the Fortran Programming Guide for information about the C-Fortran interface.
See the Linker and Libraries Guide in the Oracle Solaris documentation for more information about linking libraries.