2

在 Windows XP 中编译 libdft 时遇到问题。

我使用 cygwin 终端对其进行编译,并在 devel 中安装了所有内容,并修改了 Makefile 以避免操作系统检查。

但是当我尝试 make 命令时,它会返回错误:

libdft_api.h:36:25: 致命错误:sys/syscall.h:No such file or directory

我试图找到 syscall.h 但它不存在,如下所示。

Administrator@simon-4b7c3fa57 /cygdrive/c/libdft_linux-i386/src
$ cygcheck -l cygwin | grep syscall.h
4

1 回答 1

0

I'm having a similar problem. From what I've gathered from Google, syscall.h is a system file specific to the architecture of your machine. Cygwin doesn't emulate a Linux machine its only some tools and APIs to create a look and feel of one, so that's why the file doesn't exist. For example: In a full Linux OS it could be found in /usr/include/i386-linux-gnu/sys/

You'll need to use a similar file found in windows somewhere or try and compile your code in a Linux VM.

于 2013-05-31T14:52:52.120 回答