Библиотека сайта rus-linux.net
Linux Compilers and Assemblers
SEP 19, 2003 By Christopher Paul, Rafeeq Rehman.
Article is provided courtesy of Prentice Hall.
3.8 Creating Libraries
Libraries are files containing commonly used functions needed for all programs. For example,
printf() is a function used in most of the C programs. When the program is linked, the linker must know where the code for the
printf() function is located. Knowledge of location of library files is a must at this stage. The location can be passed to the linker
using command line options or environment variables. In large software projects, this is done inside Makefiles. The environment
variable that shows the location of library files is
LD_LIBRARY_PATH. Please see the list of command line options in this chapter
or use manual pages to find out which options are appropriate.
Next Section 9. Standard Libraries
© 2003 Pearson Education, Inc. InformIT Division. All rights reserved.
800 East 96th Street Indianapolis, Indiana 46240
Если вам понравилась статья, поделитесь ею с друзьями: