Darknet: make error: `clock_t`

Created on 28 Sep 2017  路  6Comments  路  Source: pjreddie/darknet

Please help me with this error. in Windows 10

include/darknet.h:738:11: error: unknown type name clock_t
float sec(clock_t clocks);

Most helpful comment

721

#include <time.h>

All 6 comments

I am facing the same error!

include/darknet.h:738:11: error: unknown type name 'clock_t'; did you mean 'clockid_t'?
float sec(clock_t clocks);

@Kilometer0101 have you found any fix?

https://github.com/pjreddie/darknet/issues/150
This issue helped me, actually! I didn't try what you've suggested because I have it working using the windows branch. Thanks, though!

721

#include <time.h>

If the issue is still not unresolved: got this issue in Juli 2018, on Windows 10 machine with no GPU. Trying make -nogpu produces no darknet.exe.

Envir: Windows 7 64-bit no gpu
make -nogpu (works)

include more errors like fd_set from the go.c

Was this page helpful?
0 / 5 - 0 ratings