Static Library - Creating Static Libraries in C/C++

Creating Static Libraries in C/C++

Static libraries can be easily created in C or in C++. These two languages provide storage-class specifiers for indicating external or internal linkage, in addition to providing other features.

To create such a library, the exported functions/procedures and other objects variables must be specified for external linkage (i.e. by not using the C static keyword).

Static libraries usually have a ".lib" extension on Windows and a ".a" on UNIX

Read more about this topic:  Static Library

Famous quotes containing the word creating:

    I want to know whether you are a person devoted to creating or to exchanging in some respect or other: as a creator you belong to the free, as an exchanger you are their slave and instrument.
    Friedrich Nietzsche (1844–1900)