Boost logo

Boost Users :

From: John Maddock (john_at_[hidden])
Date: 2005-03-11 06:47:56


> 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.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net