ubuntu - Boost.Thread Linking - boost_thread vs. boost_thread-mt -


It is not clear to me that the linking option exists for the library. I am at Ubuntu 8.04 and I have found that whenever using compile and running both using boost_thread or boost_thread-mt , but I do not see any documents Gives these or any other linking option in the link given above.

Boost what. Link options are available and what do they mean?

Good ...

The first interesting thing is that in the name -MT Modifier indicates that the library is fine for multithreading. It can tell us to believe that boost_thread (without this modifier) ​​can be multithread-unsafe ...

But the real thing is that (as my Is seen on your Ubuntu 10.04 box), there is a soft link for boost_thread boost_thread-mt , which means that both are same and are identical.

If you want to verify it, you can open the console on your Ubuntu (console can make fullscreen because the name is too long), then type:

  Cd / usr / lib  

Go to the directory where Boost Libraries are I and then:

  ls -l. / Libboost_thread *  

All the files that start with libboost_thread , plusnal information together The result will be something like this:

  [...] ./libboost_thread.a [...] ./libboost_thread-mt.a - & gt; As you can see,  libboost_thread.a  is a static library, and  libboost_thread-mt.a  is a soft  libboost_thread.a  


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -