Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 Mac OS X 和 Linux 上玩 JNA。我的问题是如果我正在寻找一个函数“if_nametoindex”如何确定要加载哪个库?我能找到的大多数示例都集中在 Windows 上,它们加载“kernel32”。
在我的 Leopard Mac 上man 3 if_nametoindex说:
man 3 if_nametoindex
LIBRARY Standard C Library (libc, -lc)
显然,这是一种“手动”而不是自动化的方法......