title: srand(time(NULL)) "Function 'srand' could not be resolved."
body: <p>I have been trying to debug this problem for a while and quite honestly, I just can't see what I'm doing wrong.  </p>
  
  <p>Why is there a syntax error?</p>
  
  <pre><code>#include &lt;iostream&gt;;
  #include &lt;time.h&gt;;
  #include &lt;stdio.h&gt;;
  #include &lt;stdlib.h&gt;;
  using namespace std;
  
  
  class Problem3 {
      public:
          bool isPrime(long double num) {
              srand(time(NULL));
              return 0;
          }
  };
  </code></pre>
  
  <p>The error I'm getting is, </p>
  
  <blockquote>
    <p>"Function 'srand' could not be resolved."  </p>
  </blockquote>
  
  <ul>
  <li>I'm well aware now that I don't need the semi-colons after 'include' statements</li>
  <li>I'm using Eclipse CDT along with MinGW as my compiler</li>
  </ul>
  
  <p><strong>How I resolved the problem:</strong></p>
  
  <p>It had to do with the MinGW compiler I was using. Switching over to Visual Studio solved the problem.</p>