- Compilation environment Windows
- Target Compilation Platform Windows
- Compile tool Mingw5.3
- Error file test_hdr.cpp
- Error line 140 6. The reason for the error and the time function is undefined
srand(static_cast<unsigned>(time(0)));
quote in the header
#include <sys/time.h>
Just