Hi,
a similar problem is reported here and is likely an issue of (some) mingw versions:
- c - Why is clock_gettime() not working with MinGW, even though I have time.h - Stack Overflow
- Bug #1853168 “undefined reference to `clock_gettime'” : Bugs : EPICS Base
@yuhai, could you provide your version of MinGW?