Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 1.16 KB

external-linkage.md

File metadata and controls

18 lines (13 loc) · 1.16 KB
description title ms.date helpviewer_keywords ms.assetid
Learn more about: External Linkage
External Linkage
11/04/2016
linkage [C++], external
external linkage, about external linkage
external linkage
a6f8ea69-b405-4cdd-bf12-ad5462b73183

External Linkage

If the first declaration at file-scope level for an identifier does not use the static storage-class specifier, the object has external linkage.

If the declaration of an identifier for a function has no storage-class-specifier, its linkage is determined exactly as if it were declared with the storage-class-specifier extern. If the declaration of an identifier for an object has file scope and no storage-class-specifier, its linkage is external.

An identifier's name with external linkage designates the same function or data object as does any other declaration for the same name with external linkage. The two declarations can be in the same translation unit or in different translation units. If the object or function also has global lifetime, the object or function is shared by the entire program.

See also

Using extern to Specify Linkage