PDA

View Full Version : What is linking in C++ program?



vkumar
11-23-2019, 03:58 AM
Hello friends,

What is linking in C++ program?

PrimeItSolution
11-24-2019, 11:55 PM
That is where compiling and linking in c++ comes. This phase translates the program into a low level assembly level code. ... Linking as the name suggests, refers to creation of a single executable file from multiple object files. The file created after linking is ready to be loaded into memory and executed by the system

dennis123
11-25-2019, 12:01 AM
Hi Friends,
The linker is produces the final compilation output from the object files the compiler produced. This output can be a shared (or dynamic) library or an executable. It links the object files by replacing the undefined references with the correct addresses. These symbols should be defined in other object files or in the libraries. If they are defined in libraries other than the standard library, you need to explicitly pass them to the compiler as an argument so that they can be found and linked.

nikki shah
11-25-2019, 12:47 AM
Hey! I just found that you forgot to make this post in the relevant category

pharmasecure
11-25-2019, 12:50 AM
The process of connecting or combining object files produced by a compiler with the libraries necessary to make a working executable program (or a library) is called linking. Linkage refers to the way in which a program is built out of a number of translation units

RH-Calvin
11-25-2019, 09:57 AM
Linking is the process in which references to "externally" defined objects (code and data) are processed so as to make them operational. Traditionally linking used to be performed as a task after basic translation of the user program files, and the output of this stage is a single executable program file.

aquafreshro
11-26-2019, 01:25 AM
Thanks for sharing useful information for us.

jayam
01-13-2020, 03:38 AM
That is where compiling and linking in c++ comes. This phase translates the program into a low level assembly level code. ... Linking as the name suggests, refers to creation of a single executable file from multiple object files. The file created after linking is ready to be loaded into memory and executed by the system .

ritesh3592
01-13-2020, 05:23 AM
Please post a thread that is related to the category