开发者

How to know library to link in command line?

开发者 https://www.devze.com 2023-04-11 16:33 出处:网络
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 pu

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

精彩评论

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