BOOST libraries in multithreading-aware mode

前端 未结 6 2075
野的像风
野的像风 2020-12-03 02:44

There is a possibility to compile BOOST libraries in the so-called thread-aware mode. If so you will see \"...-mt...\" appeared in the library name. I can\'t understand wha

6条回答
  •  青春惊慌失措
    2020-12-03 03:32

    Because you did not specify how you have built, and on what platform, I'll explain the whole story. Both on Linux and Windows, Boost.Thread library is built in MT mode. On Windows, by default, you get -mt suffix for it. On Linux, by default in 1.42, you get no suffix. The reason you get no suffix on Linux is that pretty much no other library uses such convention, and it's much less important on Linux anyway.

    Does this clarify things?

提交回复
热议问题