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 words creating and/or libraries:

    I have an intense personal interest in making the use of American capital in the development of China an instrument for the promotion of the welfare of China, and an increase in her material prosperity without entanglements or creating embarrassment affecting the growth of her independent political power, and the preservation of her territorial integrity.
    William Howard Taft (1857–1930)

    To me, nothing can be more important than giving children books, It’s better to be giving books to children than drug treatment to them when they’re 15 years old. Did it ever occur to anyone that if you put nice libraries in public schools you wouldn’t have to put them in prisons?
    Fran Lebowitz (20th century)