查看库中的公共函数名称的方法 [英] Way to view public function names in a library

查看:103
本文介绍了查看库中的公共函数名称的方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我有一个C库,有没有办法查看

这个库中的公共函数名称,以便我可以使用我的C程序?


谢谢。

Hi,

I got a C library, is there a way to view the public function names in
this library so that I can use in my C program?

Thanks.

推荐答案

Xiaoxiao< xi ******* ***@live.comwrites:
Xiaoxiao <xi**********@live.comwrites:

我有一个C库,有没有办法查看公共函数名称

这个库,以便我可以在我的C程序中使用?
I got a C library, is there a way to view the public function names in
this library so that I can use in my C program?



没有可移植的方法。


最好的办法是阅读(大概)

随图书馆一起提供。只知道函数的名称

并没有给你足够的信息。


-

Keith Thompson(The_Other_Keith ) ks***@mib.org < http://www.ghoti.net/~kst>

诺基亚

我们必须做点什么。这是事情。因此,我们必须这样做。

- Antony Jay和Jonathan Lynn,Yes Minister

There is no portable way to do that.

Your best bet is to read the documentation that (presumably)
accompanies the library. Just knowing the names of the functions
doesn''t give you enough information.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"


Xiaoxiao< xi * *********@live.comwrites:
Xiaoxiao <xi**********@live.comwrites:




我有一个C库,有没有办法查看

这个库中的公共函数名,以便我可以在我的C程序中使用?
Hi,

I got a C library, is there a way to view the public function names in
this library so that I can use in my C program?



这在技术上是偏离主题的,因为它不是关于C语言

本身,而是关于你的编译器和相关工具正在使用(你

并没有说出它们是什么)。您应该寻找另一个更专门用于您的系统和/或编译器的
组。


然而,在许多系统上执行此操作的命令被称为''nm''。

This is technically off-topic, since it''s not about the C language
itself but about whatever compiler and related tools you are using (you
didn''t say what they are). You should probably look for another group
that is more specifically dedicated to your system and/or compiler.

However, on many systems the command that does this is called ''nm''.


10月9日14:08,Keith Thompson< ks ... @ mib.orgwrote:
On 9 Oct, 14:08, Keith Thompson <ks...@mib.orgwrote:

晓晓< xiaoxiaoy ... @ live.comwrites:
Xiaoxiao <xiaoxiaoy...@live.comwrites:

我有一个C库,有没有办法查看公共函数在

这个库中命名,以便我可以在我的C程序中使用?
I got a C library, is there a way to view the public function names in
this library so that I can use in my C program?



没有可移植的方式来做到这一点。


最好的办法是阅读(大概)

随图书馆一起提供。 *只知道功能的名称

并没有给你足够的信息。


-

Keith Thompson( The_Other_Keith)ks ... @ mib.org *< http://www.ghoti.net/~kst>

Nokia

我们必须做点什么。 *这是事情。 *因此,我们必须这样做。

* * - Antony Jay和Jonathan Lynn,是部长


There is no portable way to do that.

Your best bet is to read the documentation that (presumably)
accompanies the library. *Just knowing the names of the functions
doesn''t give you enough information.

--
Keith Thompson (The_Other_Keith) ks...@mib.org *<http://www.ghoti.net/~kst>
Nokia
"We must do something. *This is something. *Therefore, we must do this."
* * -- Antony Jay and Jonathan Lynn, "Yes Minister"



谢谢Keith。我的问题应该是如何知道共享库中的函数原型

。从您的回答看来,除了获取文档之外没有办法实现它,是吗?

Thanks Keith. My question should be how to know the function prototype
in the shared library. It seems from your answer that there is no way
to do it except getting the document, is that right?


这篇关于查看库中的公共函数名称的方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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