Trying to compile c++ code that was used in Linux with Visual c++. Got error on line:
struct timeval ts;
Can't find timeval
structure in Windows. Why?
Trying to compile c++ code that was used in Linux with Visual c++. Got error on line:
struct timeval ts;
Can't find timeval
structure in Windows. Why?
You can write your own timeval structure according to following links Winsock timeval, Struct timeval in C, and other hits on the network.
MSVC defines this in winsock.h
typedef struct timeval {
long tv_sec;
long tv_usec;
} timeval;