error C2501: '__ss_family' : missing storage-class or type specifiers

aabbabababaa 2008-04-03 07:19:30
--------------------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)
...全文
474 6 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
pfnan 2010-05-05
  • 打赏
  • 举报
回复
应该是头文件定义问题....
ouyh12345 2008-04-04
  • 打赏
  • 举报
回复
前不久有人问了u_int8_t的问题
应该是没有设置好sdk的头文件和库文件查找路径
aabbabababaa 2008-04-04
  • 打赏
  • 举报
回复
http://d.download.csdn.net/down/400818/ojc8882003
CathySun118 2008-04-04
  • 打赏
  • 举报
回复
附件下载不了。
估计是头文件嵌套包含了
jameshooo 2008-04-04
  • 打赏
  • 举报
回复
这种错误往往是35行之前的某个符号定义问题。
用户 昵称 2008-04-03
  • 打赏
  • 举报
回复
怪啊,你的附件俺下载不了。


你是否少include了什么头文件?

18,363

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 网络编程
c++c语言开发语言 技术论坛(原bbs)
社区管理员
  • 网络编程
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧