Compiling environment windows
Target compilation platform windows
Compilation tool mingw5.3
Error file test_ hdr.cpp
Error line 140 6. The error reason time function is not defined
srand(static_cast<unsigned>(time(0)));
Quote in the head
#include <sys/time.h>
Done