error : BOOST DISABLE THREADS

前端 未结 2 880
死守一世寂寞
死守一世寂寞 2020-12-05 13:22

i have some problem with my boost library. i m using freebsd and installed my boost using ports. Boost version is : 1.45 and i use g++47 as compiler. Also i have never defin

2条回答
  •  忘掉有多难
    2020-12-05 13:39

    See the ticket 6165 mentioned above by Joachim:
    To define 'threads' support,

    • GCC <= 4.6 defines _GLIBCXX__PTHREADS
    • whereas GCC >= 4.7 defines _GLIBCXX_HAS_GTHREADS.
    So, in order to compile older Boosts using any GCC more recent than 4.6 you need the patch libstdcpp3.hpp.patch enclosed in that ticket.

    Another problem that could also prevent Boost on working with modern compiler is ticket 6940 (TIME_UTC has a special meanhing in C11, therefore Boost >= 1.50 use TIME_UTC_ instead)

提交回复
热议问题