Why does a function that is defined in one translation unit accessible in a different translation unit where it is forward declared as static?

后端 未结 0 1716
春和景丽
春和景丽 2020-11-28 17:10

I have two translation units in my application.

In the first translation unit, there is a function getX() which has external linkage by default. In the second transla

相关标签:
回答
  • 消灭零回复
提交回复
热议问题