What is linking in C++.....? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What is linking in C++.....?

I understand some terms like compilation( Process ofturning the source code to language of the computer) and preprocessor directives but what is the linking process?

9th Feb 2018, 9:01 PM
Atheletic Nike
Atheletic Nike - avatar
1 Answer
+ 2
the compiler makes multiple obj files and leaves placeholders in the main obj file. These placeholders are replaced by the linker, which gets the missing parts out of the other obj files. The linker "links" the different files of machine code
9th Feb 2018, 11:55 PM
Alex
Alex - avatar