Jun 7, 2011It links all the object files by replacing the references to undefined symbols with the correct addresses. Each of these symbols can be definedĀ c++ - What is the difference between 'compiling and linking' and just What are the differences between a compiler and a linker?Why do we need compiling and linking separately? - Stack OverflowWhat does linking in the compilation process actually do?More results from stackoverflow.com
Compilation: the compiler takes the pre-processor's output and produces an object file from it. Linking: the linker takes the object files produced by the compiler and produces either a library or an executable file.
Compiling - The modified source code is compiled into binary object code. This code is not yet executable. Linking - The object code is combined with required supporting code to make an executable program. This step typically involves adding in any libraries that are required.
Compiling and linking are two separate stages of the build process in C and C++. Find out more about what they are.
Linker (computing) In computing, a linker or link editor is a computer system program that takes one or more object files (generated by a compiler or anĀ OverviewDynamic linkingStatic linkingLinkage editor