how to use Linux lib such as timeval in windows
I have installed cygwin and dev c++
I don’t like compliling in cygwin
compliling under dev c++ always erro like
`gettimeofday’ undeclared (first use this function)
unfortunately, I don’t have enough harddisk space to install a linux or any vitual machine
thanks a lot
You can’t use Linux code straight away in Windows, of course.
But it seems you’re trying to do this using Cygwin, which should support the Linux/POSIX APIs.
If the error you’re getting is a compile-time (and not linker) error, you probably are missing the proper header file:
These are documented on
gettimeofday()‘s man page.