Makefile Cygwin kore制造罐头';找不到插座

Makefile Cygwin kore制造罐头';找不到插座,makefile,cygwin,Makefile,Cygwin,我正在使用Cygwin在Windows 10上生成kore.io的makefile,并得到以下错误: gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -Iincludes -std=c99 -pedantic -DPREFIX='"/usr/local"' -O2 -c src/

我正在使用Cygwin在Windows 10上生成kore.io的makefile,并得到以下错误:

gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -Iincludes -std=c99 -pedantic -DPREFIX='"/usr/local"' -O2 -c src/kore.c -o obj/kore.o 
src/kore.c:20:24: fatal error: sys/socket.h: No such file or directory
compilation terminated.
make: *** [obj/kore.o] Fout 1
我环顾了四周,但我发现没有一个解决方案适合我

我检查了Cygwin/usr/include/sys文件夹并找到了socket.h。 我通读了makefile,没有发现lib引用有任何错误

我已经努力完成这项工作一个多小时了


提前感谢。

要查找需要安装的软件包,请使用cygcheck查找包含sys/socket.h

$ cygcheck -p usr/include/sys/socket.h
Found 5 matches for usr/include/sys/socket.h
cygwin-devel-2.6.1-1 - cygwin-devel: Core development files (installed binaries and support files)
cygwin-devel-2.7.0-1 - cygwin-devel: Core development files
cygwin-devel-2.8.0-1 - cygwin-devel: Core development files
cygwin32-2.5.2-1 - cygwin32: Cygwin 32bit toolchain (installed binaries and support files)
cygwin32-2.6.0-1 - cygwin32: Cygwin 32bit toolchain (installed binaries and support files)

因此,您需要安装包含
cygwin
标准头的
cygwin-devel

要找到需要安装的软件包,请使用cygcheck查找包含
sys/socket.h

$ cygcheck -p usr/include/sys/socket.h
Found 5 matches for usr/include/sys/socket.h
cygwin-devel-2.6.1-1 - cygwin-devel: Core development files (installed binaries and support files)
cygwin-devel-2.7.0-1 - cygwin-devel: Core development files
cygwin-devel-2.8.0-1 - cygwin-devel: Core development files
cygwin32-2.5.2-1 - cygwin32: Cygwin 32bit toolchain (installed binaries and support files)
cygwin32-2.6.0-1 - cygwin32: Cygwin 32bit toolchain (installed binaries and support files)
因此,您需要安装包含
cygwin
标准头的
cygwin-devel