GCC std::thread not found in namespace std

前端 未结 5 1540
梦如初夏
梦如初夏 2020-12-06 16:43

I am using GCC 4.5.0 with the Eclipse IDE (if that matters) on Windows via MinGW.

I\'m using the -std=c++0x flag.

I find that _GLIBCXX_HAS

5条回答
  •  醉话见心
    2020-12-06 17:31

    There is already a lightweight header-only library that implements std::thread and sync primitives in pure win32 API: https://github.com/meganz/mingw-std-threads

    IT should work with any version of MinGW that has proper C++11 support.

提交回复
热议问题