When trying to compile the following code
#include
#include
void foo() { std::cout << \"foo\\n\"; }
int main()
{
st
As others have mentioned, the mingw port of gcc does not provide C++0x concurrency support out of the box. However, the commercial just::thread library provides these facilities, so you can use std::thread
with the TDM/mingw port of gcc 4.5.2.
Disclaimer: I am the primary developer of the just::thread library.