4 ms·
Minor nitpick, but inline and weak are not the same thing. Weak linkage is a property that is resolved by the dynamic linker (at runtime startup); inline linkag
by ludocode 6y ago
Minor nitpick, but inline and weak are not the same thing. Weak linkage is a property that is resolved by the dynamic linker (at runtime startup); inline linkage is a property that is resolved by the static linker (at compile-time linking.) GCC calls inline "vague linkage" and it only uses weak linkage if the platform does not have COMDAT support:
https://gcc.gnu.org/onlinedocs/gcc/Vague-Linkage.html https://gcc.gnu.org/onlinedocs/gcc/Vague-Linkage.html
- spacechild1 6y agoThanks, you're certainly correct! I was a bit sloppy and didn't care to lookup the proper wording :-)