title: C++ error : Sleep was not declared in this scope
body: <p>I am using C++ in Ubuntu with codeBlocks, boost 1.46 in GCC 4.7 [ yield_k.hpp ]</p>
  
  <p>I get this compile time error: </p>
  
  <pre><code>error : Sleep was not declared in this scope
  </code></pre>
  
  <p>Code:</p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  int main() { 
    cout &lt;&lt; "nitrate";
    cout &lt;&lt; flush;
    sleep(1000);
    cout &lt;&lt; "firtilizers";
    return 0;
  }
  </code></pre>
  
  <p>How do I resolve this error?  I want the program to hang for 1 second.</p>