我试图使用Cygwin在Windows 7中安装/编译诸如igraph和SNAP之类的库(并且还尝试了MinGW-MSYS)并且遇到了一些问题.
我想我已经把问题缩小到了这个错误./configure:
checking sys/times.h usability... no
checking sys/times.h presence... no
checking for sys/times.h... no
Run Code Online (Sandbox Code Playgroud)
在Cygwin中,/usr/include/sys/times.h确实存在.我为MinGW搜索了这个,似乎sys/times.h不适用于MinGW,因为" POSIX/BSD"次"函数不是ANSI标准的一部分,并且在Mingw32运行时不存在 ".
作为一个实验,我尝试使用gcc在Cygwin中编译这个C代码:
#include <stdio.h>
#include <sys/times.h>
int main (void)
{
return 0;
}
Run Code Online (Sandbox Code Playgroud)
这不会编译,错误sys/times.h no such file or directory.即使我将include更改为</usr/include/sys/times.h>或,也会发生这种情况<usr/include/sys/times.h>.在Cygwin命令中,启动/usr/include/sys/times.h工作正常.
题
如何获得sys/times.h的可用性和存在感?我可以安装包或库吗?