When we build a project/solution in VS, WKT the code first compiles & then linking takes place.
I would like to clearly understand in a great depth, that what exactly happens during the linking phase when you compile the code using VS C++ compiler.
Fixing compilation errors are very easy, just remove the syntax errors & you will be done. But the linker errors do create a lot of mess at times because, of lack of knowledge in this area of linking.
Once we know this process of linking in complete depth, it's easy to fight with the very common troublesome errors related to linking.
Few specific questions:
1) How does the linking actually takes place?
2) What all does the linking process need? A *.lib file and a header file ? If yes, can you pleas explain in detail how is this done?
And after having understood the above facts, it would be very easy to figure out solutions to linking problems like below..
error LNK2001: unresolved external symbol "public: long __thiscall