8 May 2020 by Phillip Johnston • Last updated 14 December 2021Weak linking is a technique used with ELF and Mach-O file formats. Symbols can be “weak symbols” or “strong symbols” (the default type). A strong symbol can override a weak symbol of the same name at link time. Under normal linkage with strong symbols, errors are generated if a symbol is not found. An error will also be generated if more than one definition is found for the same symbol. Weak linkage is similar to extern in that it tells the compiler that the function or variable is defined …
Continue reading “Weak Linking”
Synonyms:
Weakly linked,
Categories: Field Atlas
« Back to Glossary Index
