我正在使用cygwin编译网络工具(iffinder)。编译cygwin下的icmp相关代码(缺少“icmp”结构)
经过./configure
和make
我有一个问题,我猜与struct icmp
有关。头文件中的icmp
结构在哪里。我在cygwin头文件中搜索它,但我没有找到任何东西。
如何在cygwin中编译需要icmp
的源代码?
如果有帮助,你可以找到的源代码iffinderhere
注:我在Cygwin的头文件ip_icmp.h
。
编译错误:
iffinder.c:1059: warning: "struct icmp" declared inside parameter list
iffinder.c:1059: warning: its scope is only this definition or
declaration, which is probably not what you want iffinder.c: In
function `handle_icmp_error': iffinder.c:1069: error: dereferencing
pointer to incomplete type
...