Skip to Content
Advanced C and C++ Compiling
book

Advanced C and C++ Compiling

by Milan Stevanovic
April 2014
Intermediate to advanced
340 pages
8h 19m
English
Apress
Content preview from Advanced C and C++ Compiling

CHAPTER 5

image

Working with Static Libraries

In this chapter, I will review the typical life cycle in dealing with static libraries. I will start with simple guidelines for creating static library, then I will provide the overview of typical use case scenarios, and finally I will take a closer look at certain expert-level design tips and tricks.

Creating Static Library

A static library is created when the object files created by compiler from the set of source files are bundled together into a single archive file. This task is performed by a tool called an archiver.

Creating Linux Static Library

On Linux, the archiver tool, called simply ar, is available ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

The C++ Programming Language, 4th Edition

The C++ Programming Language, 4th Edition

Bjarne Stroustrup

Publisher Resources

ISBN: 9781430266679Purchase book