Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    Sep 2019
    Posts
    52

    What is linking in C++ program?

    Hello friends,

    What is linking in C++ program?

  2. #2
    Registered User
    Join Date
    Dec 2018
    Posts
    544
    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

  3. #3
    Senior Member dennis123's Avatar
    Join Date
    Apr 2013
    Location
    Bangalore
    Posts
    3,627
    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.

  4. #4

  5. #5
    Registered User
    Join Date
    Jun 2018
    Posts
    1,416
    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

  6. #6
    Senior Member
    Join Date
    Jun 2013
    Location
    Forum
    Posts
    5,019
    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.
    Cheap VPS | $1 VPS Hosting
    Windows VPS Hosting | Windows with Remote Desktop
    Cheap Dedicated Server | Free IPMI Setup

  7. #7
    Registered User
    Join Date
    Apr 2018
    Posts
    37
    Thanks for sharing useful information for us.

  8. #8
    Registered User
    Join Date
    Nov 2019
    Posts
    2,528
    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 .

  9. #9

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

  Find Web Hosting      
  Shared Web Hosting UNIX & Linux Web Hosting Windows Web Hosting Adult Web Hosting
  ASP ASP.NET Web Hosting Reseller Web Hosting VPS Web Hosting Managed Web Hosting
  Cloud Web Hosting Dedicated Server E-commerce Web Hosting Cheap Web Hosting


Premium Partners:


Visit forums.thewebhostbiz.com: to discuss the web hosting business, buy and sell websites and domain names, and discuss current web hosting tools and software.