在Windows XP中编译libdft时遇到问题。
我使用cygwin终端对其进行编译,并且已将所有内容安装在devel中,并且已修改了Makefile以避免操作系统检查。
但是,当我尝试使用make命令时,它将返回错误:
libdft_api.h:36:25: fatal error:sys/syscall.h:No such file or directory
Administrator@simon-4b7c3fa57 /cygdrive/c/libdft_linux-i386/src
$ cygcheck -l cygwin | grep syscall.h
最佳答案
我有类似的问题。根据我从Google收集到的信息,syscall.h
是特定于您的计算机体系结构的系统文件。 Cygwin不会仅使用某些工具和API来模仿Linux机器,而是创建某些工具和API的外观,因此这就是文件不存在的原因。例如:在完整的Linux操作系统中,可以在/usr/include/i386-linux-gnu/sys/
中找到它
您需要使用Windows某个地方的类似文件,或者尝试在Linux VM中编译代码。
关于compiler-errors - libdft_api.h :36:25: fatal error:sys/syscall.h:No such file or directory,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11178694/