24# error "Multi-threaded programs are not supported by gcc on HPUX or Irix (last checked with gcc 3.3)"
25#endif
26
27#endif
28
29# error "Threading support unavaliable: it has been explicitly disabled with BOOST_DISABLE_THREADS"
30
31#elif !defined(BOOST_HAS_THREADS)
32
33# if defined __COMO__
34// Comeau C++
35# error "Compiler threading support is not turned on. Please set the correct command line options for threading: -D_MT (Windows) or -D_REENTRANT (Unix)"
40# error "Compiler threading support is not turned on. Please set the correct command line options for threading: either /MT /MTd /MD or /MDd"
41#else
42# error "Compiler threading support is not turned on. Please set the correct command line options for threading: -openmp"
43#endif
44
45# elif defined __GNUC__
46// GNU C++:
47# error "Compiler threading support is not turned on. Please set the correct command line options for threading: -pthread (Linux), -pthreads (Solaris) or -mthreads (Mingw32)"
48
49#elif defined __sgi
50// SGI MIPSpro C++
51# error "Compiler threading support is not turned on. Please set the correct command line options for threading: -D_SGI_MP_SOURCE"
52
53#elif defined __DECCXX
54// Compaq Tru64 Unix cxx
55# error "Compiler threading support is not turned on. Please set the correct command line options for threading: -pthread"
56
57#elif defined __BORLANDC__
58// Borland
59# error "Compiler threading support is not turned on. Please set the correct command line options for threading: -tWM"
60
61#elif defined __MWERKS__
62// Metrowerks CodeWarrior
63# error "Compiler threading support is not turned on. Please set the correct command line options for threading: either -runtime sm, -runtime smd, -runtime dm, or -runtime dmd"
64
65#elif defined __SUNPRO_CC
66// Sun Workshop Compiler C++
67# error "Compiler threading support is not turned on. Please set the correct command line options for threading: -mt"
68
69#elif defined __HP_aCC
70// HP aCC
71# error "Compiler threading support is not turned on. Please set the correct command line options for threading: -mt"
72
73#elif defined(__IBMCPP__)
74// IBM Visual Age
75# error "Compiler threading support is not turned on. Please compile the code with the xlC_r compiler"
76
77#elif defined _MSC_VER
78// Microsoft Visual C++
79//
80// Must remain the last #elif since some other vendors (Metrowerks, for
81// example) also #define _MSC_VER
82# error "Compiler threading support is not turned on. Please set the correct command line options for threading: either /MT /MTd /MD or /MDd"
83
84#else
85
86# error "Compiler threading support is not turned on. Please consult your compiler's documentation for the appropriate options to use"