I am trying to compile Google test through MinGW via command line, but when I try to compile with command
gcc -I D:\gtest -I D:\gtest\include -I D:\gtest\include\gtest src\gtest_main.cc src\gtest-all.cc
it throws error
Gtest.cc:812: error: 'gettimeofday' was not declared in this scope
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?
<time.h> and <sys/time.h>
are two different includes
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With