基本术语

The three basic tools used to build C++ applications are the compiler, the linker, and the archiver (or librarian).

 

The compiler takes C++ source files as input and produces object files, which contains a mixture of

machine-executable code and symbolic references to functions and data.

 

The archiver takes a collection of object files as input and produces a static library, or archive, which is

simply a collection of object files grouped for convenient use.

 

The linker takes a collection of object files and libraries and resolves their symbolic references to produce

either an executable or dynamic library. Roughly speaking, the linker operates by matching each use of

symbol to its definition.

 

A dynamic library, also called a shared library, is like an executable except that it can't be run on its

own; it consists of a body of machine-executable code that is loaded into memory after an application

is started and can be shared by one or more applications.

 

On Winodws, dynamic libraries are also called dynamic link libraries (DLLs).

 

The object files and static libraries on which an executable depends are needed only when the executable

is built. The dynamic libraries on which an executable depends, however, must be present on a user's

system when the executable is run.



 

 

 

 

 

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值