2.1 KiB
[using.linkage]
16 Library introduction [library]
16.4 Library-wide requirements [requirements]
16.4.3 Using the library [using]
16.4.3.3 Linkage [using.linkage]
Entities in the C++ standard library have external linkage.
Unless otherwise specified, objects and functions have the defaultextern "C++" linkage ([dcl.link]).
Whether a name from the C standard library declared with external linkage hasextern "C" orextern "C++" linkage is implementation-defined.
It is recommended that an implementation useextern "C++" linkage for this purpose.150
Objects and functions defined in the library and required by a C++ program are included in the program prior to program startup.
See alsoreplacement functions,runtime changes.
The only reliable way to declare an object or function signature from the C standard library is by including the header that declares it, notwithstanding the latitude granted in ISO/IEC 9899:2024, 7.1.4.