问题描述
我有一个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.
推荐答案
没有可移植的方法。
最好的办法是阅读(大概)
随图书馆一起提供。只知道函数的名称
并没有给你足够的信息。
-
Keith Thompson(The_Other_Keith )< 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"
这在技术上是偏离主题的,因为它不是关于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''.
没有可移植的方式来做到这一点。
最好的办法是阅读(大概)
随图书馆一起提供。 *只知道功能的名称
并没有给你足够的信息。
-
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) [email protected] *<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?
这篇关于查看库中的公共函数名称的方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!