I've been trying to install a package on my Windows machine using Git bash. I encounter the error: fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directoryerror'
, which multiple StackOverflow questions try to address (see here, here2 and here3). There's no shortage of possible answers but no updated/current solutions.
By way, I came across a possible solution, offered by the link below, which suggests to create 3 files, time.h
, times.h
and times.cpp
. The problem is, it's unclear to me where to place these three files - the author suggests to put them in the same "project folder" but this is unclear to me. I created a folder sys
with these three files in the same project and tried to compile, to no avail. Is there something simple I'm overlooking?
https://www.codefull.net/2015/12/systime-h-replacement-for-windows/