Can we get weak functions for static linking? The Visual C++ compiler says “We have weak functions at home”

The ELF object file has this thing called “weak functions”. These are functions present in a library that are used by the linker to resolve a symbol only if the main program doesn’t provide a resolution for them. The Visual C++ compiler doesn’t have “weak functions” in this sense, but that doesn’t mean that equivalent functionality

Click here to read the article