繁体   English   中英

尝试在Mac上的Darknet YOLO库上运行“ make”命令时出错

[英]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个警告和1个错误。 make:*** [obj / utils.o]错误1

clock_gettime函数在MacOS上不可用。 因此,您必须重写代码以使用其他方法。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM