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.
精彩评论