--------------------Configuration: Cpp6 - Win32 Debug--------------------
Compiling...
Cpp6.cpp
sockstorage.h(35) : error C2146: syntax error : missing ';' before identifier '__ss_family'
sockstorage.h(35) : error C2501: 'u_int8_t' : missing storage-class or type specifiers
sockstorage.h(35) : error C2501: '__ss_family' : missing storage-class or type specifiers
sockstorage.h(36) : error C2146: syntax error : missing ';' before identifier 'fill'
sockstorage.h(36) : error C2501: 'u_int8_t' : missing storage-class or type specifiers
sockstorage.h(36) : error C2501: 'fill' : missing storage-class or type specifiers
cpp6.cpp(577) : error C2079: 'ipbuff' uses undefined struct 'npf_if_addr'
cpp6.cpp(631) : error C2065: 'PacketGetVersion' : undeclared identifier
cpp6.cpp(685) : error C2065: 'PacketGetNetInfoEx' : undeclared identifier
cpp6.cpp(687) : error C2228: left of '.Broadcast' must have class/struct/union type
cpp6.cpp(690) : error C2228: left of '.SubnetMask' must have class/struct/union type
cpp6.cpp(693) : error C2228: left of '.IPAddress' must have class/struct/union type
Error executing cl.exe. Cpp6.exe - 12 error(s), 0 warning(s)
Compiling...
Cpp6.cpp
sockstorage.h(35) : error C2146: syntax error : missing ';' before identifier '__ss_family'
sockstorage.h(35) : error C2501: 'u_int8_t' : missing storage-class or type specifiers
sockstorage.h(35) : error C2501: '__ss_family' : missing storage-class or type specifiers
sockstorage.h(36) : error C2146: syntax error : missing ';' before identifier 'fill'
sockstorage.h(36) : error C2501: 'u_int8_t' : missing storage-class or type specifiers
sockstorage.h(36) : error C2501: 'fill' : missing storage-class or type specifiers
cpp6.cpp(577) : error C2079: 'ipbuff' uses undefined struct 'npf_if_addr'
cpp6.cpp(631) : error C2065: 'PacketGetVersion' : undeclared identifier
cpp6.cpp(685) : error C2065: 'PacketGetNetInfoEx' : undeclared identifier
cpp6.cpp(687) : error C2228: left of '.Broadcast' must have class/struct/union type
cpp6.cpp(690) : error C2228: left of '.SubnetMask' must have class/struct/union type
cpp6.cpp(693) : error C2228: left of '.IPAddress' must have class/struct/union type
Error executing cl.exe. Cpp6.exe - 12 error(s), 0 warning(s)
你是否少include了什么头文件?
应该是没有设置好sdk的头文件和库文件查找路径