control-flag icon indicating copy to clipboard operation
control-flag copied to clipboard

Doesn't build on windows.

Open IOBYTE opened this issue 3 years ago • 2 comments

2>C:\Users\Bob\control-flag\src\common_util.h(24,10): fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory 2>C:\Users\Bob\control-flag\src\trie.h(24,10): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory

Shouldn't you be using portable C++11 chrono in new code?

IOBYTE avatar Oct 20 '21 19:10 IOBYTE

hi IOBYTE,

Ah, yes, using chrono library than sys/time seems better option. I could consider that. Thanks for trying out ControlFlag, btw. Feel free to submit a PR in case you are interested in the change. Thanks. :)

nhasabni avatar Oct 20 '21 21:10 nhasabni

PR#54 could answer your issue.

philippefoubert avatar Feb 27 '24 17:02 philippefoubert