c++ thread derleme hatası

Başlatan Gökhan BEKEN, 11 Ekim 2013, 14:45:58

Gökhan BEKEN

http://www.cplusplus.com/reference/thread/thread/
sayfasındaki örneği derlemeye çalışıyorum:
// thread example
#include <iostream>       // std::cout
#include <thread>         // std::thread
 
void foo() 
{
  // do stuff...
}

void bar(int x)
{
  // do stuff...
}

int main() 
{
  std::thread first (foo);     // spawn new thread that calls foo()
  std::thread second (bar,0);  // spawn new thread that calls bar(0)

  std::cout << "main, foo and bar now execute concurrently...\n";

  // synchronize threads:
  first.join();                // pauses until first finishes
  second.join();               // pauses until second finishes

  std::cout << "foo and bar completed.\n";

  return 0;
}


thread kütüphanesinin 35. satırında hata veriyor:
hatalı satır burdaki include'lı kod:
#ifndef __GXX_EXPERIMENTAL_CXX0X__
# include <bits/c++0x_warning.h>
#else


Dev c++ idesi ile yazıyorum, onda mı sıkıntı var acaba?
Özel mesaj okumuyorum, lütfen göndermeyin.