4

Possible Duplicate:
How to enable experimental C++0x concurrency features in MinGW?

my version of mingw32 (gcc version is 4.5.2) does not come with the class std::thread.

Is there a version of mingw32 which supports std::thread?

Community
  • 1
  • 1
André Puel
  • 8,741
  • 9
  • 52
  • 83
  • 1
    You may be interested in: http://programmers.stackexchange.com/questions/103309/which-compilers-support-what-c11-features – Doug T. Aug 29 '11 at 21:38
  • 1
    And in http://stackoverflow.com/q/3414834/196561 and http://stackoverflow.com/q/5930826/196561 – osgx Aug 29 '11 at 21:38
  • Actually, I know that mingw32 does not support threading, I am looking for some modified version o something like that. – André Puel Aug 30 '11 at 13:42

2 Answers2

1

I guess that std::thread came from boost, so you can always use boost for that, plus it comes with lots of useable bits

Pavel P
  • 15,789
  • 11
  • 79
  • 128
1

Mingw32 is on the overly conservative side, for updated compiler technology follow MinGW-w64 which targets both 32-bit and 64-bit architectures.

http://mingw-w64.sourceforge.net/

It limits you to Cygwin or Linux et al. cross compiles, there isn't a choice available for MSYS.

Steve-o
  • 12,678
  • 2
  • 41
  • 60
  • Thank you, your answer was helpful. But mingw-w64 (seems to) also doesn't support threading yet. – André Puel Aug 30 '11 at 13:44
  • I recall there were "posix" and "winapi" threading schemes mentioned when I was downloading recent mingw-w64 versions. are you sure? – asu Oct 13 '16 at 19:51
  • oops, i did not realize i'm 5 years late... – asu Oct 13 '16 at 21:51