开发者

How to know library to link in command line?

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?


Read the manual that comes with the library.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜