[英]Error while trying to run 'make' command on darknet YOLO library on a Mac
gcc -Iinclude/ -Isrc/ -Wall -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/utils.c -o obj/utils.o
./src/utils.c:29:5: warning: implicit declaration of function 'clock_gettime' is invalid in C99 [-Wimplicit-function-declaration]
clock_gettime(CLOCK_REALTIME, &now);
^
./src/utils.c:29:19: fatal error: use of undeclared identifier 'CLOCK_REALTIME'
clock_gettime(CLOCK_REALTIME, &now);
^
1 warning and 1 error generated.
生成1个警告和1个错误。 make: *** [obj/utils.o] Error 1
make:*** [obj / utils.o]错误1
The clock_gettime
function is not available on MacOS. clock_gettime
函数在MacOS上不可用。 So you'll have to rewrite the code to use a different method. 因此,您必须重写代码以使用其他方法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.