
11 Mar
2005
11 Mar
'05
11:47 a.m.
afaik '-mt' stands for multithreading. Do I've to link against the '-mt' version of a boost library if my application is single threaded but uses external libs which internally span threads? Could you be so kind to give me a generall guideline? thx
You should always use the library that is built in the same way that your application is built (in other words they have to be binary compatible), a quick check would be: #include <boost/config.hpp> #ifdef BOOST_HAS_THREADS #error "Use the multithreaded boost libs" #endif If the #error is triggered then you need the MT-safe Boost lib builds. John.