English 中文(简体)
标签:的问答
为什么焊接器允许使用相同方法的多类定义?
原文:Why does the ld linker allow multiple class definitions with the same methods?

考虑此文件, 首先. cpp, 包含一个分类定义和使用 : # 包括 < iople> ruct Foo { Foo () { std:: cout { "Foo () { std:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

热门标签