title: Google test Gtest.cc:812: error: 'gettimeofday' was not declared in this scope
body: <p>I am trying to compile Google test through MinGW via command line, but when I try to compile with command </p>
  
  <pre><code>gcc -I D:\gtest -I D:\gtest\include -I D:\gtest\include\gtest src\gtest_main.cc src\gtest-all.cc
  </code></pre>
  
  <p>it throws error </p>
  
  <p><code>Gtest.cc:812: error: 'gettimeofday' was not declared in this scope</code></p>
  
  <p>I successfully compiled through Visual Studio, so my guess it's not the fault in code. Does anyone else encountered this problem and knows solution?</p>