Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
@Giorgio: the reference to Java may not be welcome, but I think that Emilio's answer is mostly right by getting to the gist of the issue, namely the object file/linker phase after separate compilation.
@Klaim/C++ compilation model: I think than Emilio's answer is trying (and succeeding in parts) to precisely explain the C++ compilation model, even it could (still) be improved.