错误:
d:\wpdpack\examples-pcap\iflist\iflist.c(152) : error C2065: 'socklen_t' : undeclared identifier
d:\wpdpack\examples-pcap\iflist\iflist.c(152) : error C2146: syntax error : missing ';' before identifier 'sockaddrlen'
d:\wpdpack\examples-pcap\iflist\iflist.c(152) : error C2065: 'sockaddrlen' : undeclared identifier
d:\wpdpack\examples-pcap\iflist\iflist.c(161) : warning C4013: 'getnameinfo' undefined; assuming extern returning int
d:\wpdpack\examples-pcap\iflist\iflist.c(167) : error C2065: 'NI_NUMERICHOST' : undeclared identifier
Error executing cl.exe.
编译器为: VC6.0
解决方法:
安装SDK,
并在菜单Tools --> Options --> Directories 中设置: (置顶)
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\MICROSOFT SDK\INCLUDE
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\MICROSOFT SDK\LIB
转于:
http://blog.163.com/gaoguangtao_love/blog/static/384837152009725111213939/