如何在命令行中知道要链接的库?
因此,例如,我想链接一个 boost::thread 库,我必须在命令行中输入 -lboost_thread 。但是,我如何知道其他库的名称,这样我就不必猜测要放在命令行中的名称。例如,为了链接线程库,我将 -lboost_thread 作为我看到的另一个 boost 库链接示例的随机猜测。有没有办法大致知道要放入命令行的库的名称?
So, for example, I want to link a boost::thread library, I have to type -lboost_thread in the command line. However, how do I know the name of other libraries, so I don't have to guess the name to put in the command line. For example, to link thread library, I put -lboost_thread as a random guess from another linking example of boost library I saw. Is there a way to generally know the name of the library to put in command line?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
阅读该库附带的手册。
Read the manual that comes with the library.