如何知道链接文件 [英] How to know linked Files

查看:54
本文介绍了如何知道链接文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我有两个文件A.c和B.c,我可以单独用A.c制作可执行文件,或者在B.c中添加
。如果我用两个文件制作可执行文件,我怎么知道

Bc与Ac链接?


谢谢,

Rayuthar

Hi,

I have two files A.c and B.c , i can make executable with A.c alone or
addition to B.c. If i make executable with two files , how can i know
B.c is linked with A.c?

Thanks,
Rayuthar

推荐答案

4月23日,8:23 * am,rayut ... @ gmail.com写道:
On Apr 23, 8:23*am, rayut...@gmail.com wrote:




我有两个文件Ac和Bc,我可以单独用Ac制作可执行文件或

除了Bc如果我用两个文件制作可执行文件,我怎么知道

Bc与Ac链接?


谢谢,

Rayuthar
Hi,

I have two files A.c and B.c , i can make executable with A.c alone or
addition to B.c. If i make executable with two files , how can i know
B.c is linked with A.c?

Thanks,
Rayuthar



您可以在编译时启用跟踪,以查看文件

是否已编译和链接。

Suresh M. Shenoy

You could may be enable trace on when you compile to see if the files
are compiled and linked.

Suresh M. Shenoy


ra ***** *@gmail.com 写道:




我有两个文件Ac和Bc,i可以单独使用Ac制作可执行文件,或者除了Bc之外还可以使用
如果我用两个文件制作可执行文件,我怎么知道

B.c与A.c链接?
Hi,

I have two files A.c and B.c , i can make executable with A.c alone or
addition to B.c. If i make executable with two files , how can i know
B.c is linked with A.c?



会有什么不同?由于A在B中没有使用任何

(如果确实如此,你不能单独从A那里制作一个可执行的

),B贡献的任何东西都是无法访问的。


你想解决的问题是什么?


-

Eric Sosman
es ***** @ ieee-dot-org.inva lid

What difference would it make? Since A uses nothing that
is defined in B (if it did, you could not make an executable
from A alone), anything B contributes is inaccessible.

What is the larger problem you are trying to solve?

--
Eric Sosman
es*****@ieee-dot-org.invalid


4月23日下午5:50,Eric Sosman< esos ... @ ieee-dot-org.invalidwrote:
On Apr 23, 5:50 pm, Eric Sosman <esos...@ieee-dot-org.invalidwrote:

rayut .. 。@ gmail.com写道:
rayut...@gmail.com wrote:


Hi,


我有两个文件Ac和Bc一样,我可以单独使用Ac或

加入Bc如果我用两个文件制作可执行文件,我怎么知道

B.c与A.c链接?
I have two files A.c and B.c , i can make executable with A.c alone or
addition to B.c. If i make executable with two files , how can i know
B.c is linked with A.c?



会有什么不同?由于A在B中没有使用任何

(如果确实如此,你不能单独从A那里制作一个可执行的

),B贡献的任何东西都是无法访问的。


你想解决的问题是什么?


-

Eric Sosman

esos ... @ ieee-dot-org.invalid


What difference would it make? Since A uses nothing that
is defined in B (if it did, you could not make an executable
from A alone), anything B contributes is inaccessible.

What is the larger problem you are trying to solve?

--
Eric Sosman
esos...@ieee-dot-org.invalid



我想检查A是否与B链接,如果链接我将使用

来自B的功能我将采取任何其他方式。

I want to check if A is linked with B or not, if linked i will use the
function from B else i will go for any other way.


这篇关于如何知道链接文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆