C ++编译和链接 [英] C++ compiling and linking
本文介绍了C ++编译和链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我发现了一个有关在C ++中进行编译和链接的问题,但我不知道哪个答案是正确的.与我的朋友们讨论过,意见分歧.这是一个问题:
I found one question about compiling and linking in C++ and I don't know which answer is correct. It was discussed with my friends and opinions are divided. Here is a question:
为了运行以C ++语言编写的程序,其源代码为:
(一)编译成机器码,
(二)编译并链接到机器代码
我认为正确的答案是A,但我没有任何来源可以证明这一点.
In order to run program written in C++ language its source code is:
(A) compiled to machine code,
(B) compiled and linked to machine code
In my opinion the correct answer is A but I don't have any source to prove it.
推荐答案
还需要链接来创建独立的可执行文件.
Linkage is needed as well to create a standalone executable.
这篇关于C ++编译和链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文