Difference between revisions of "Linking"
From Linuxintro
imported>ThorstenStaerk |
imported>ThorstenStaerk |
||
Line 1: | Line 1: | ||
− | To [[build]] an executable program from source code, you have to compile and link it. Compilation is translating the source code into machine language, linking is adding functionality from libraries like drawing a circle, writing or printing text. | + | To [[build]] an executable program from source code, you have to compile and link it. Compilation is translating the source code into machine language, linking is adding functionality from libraries like drawing a circle, writing or printing text. "Adding functionality from libraries to an executable program" can mean that you add the code from the library to your program or that you call a function from your program. Adding the code is called static linking, calling a function from a library is called dynamic linking. |
See | See | ||
* [[static linking]] | * [[static linking]] | ||
* [[dynamic linking]] | * [[dynamic linking]] |
Revision as of 18:02, 31 December 2010
To build an executable program from source code, you have to compile and link it. Compilation is translating the source code into machine language, linking is adding functionality from libraries like drawing a circle, writing or printing text. "Adding functionality from libraries to an executable program" can mean that you add the code from the library to your program or that you call a function from your program. Adding the code is called static linking, calling a function from a library is called dynamic linking.
See