用户名: 密码: 忘记密码? 注册
收藏此问题 发表新评论

freebsd原始套接字编程错误

  1. In file included from test.c:5:
  2. /usr/include/netinet/tcp.h:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'tcp_seq'
  3. /usr/include/netinet/tcp.h:50: error: expected specifier-qualifier-list before 'u_short'
  4. /usr/include/netinet/tcp.h:175: error: expected specifier-qualifier-list before 'u_int8_t'
  5. In file included from test.c:6:
  6. /usr/include/netinet/ip.h:51: error: expected specifier-qualifier-list before 'u_int'
  7. /usr/include/netinet/ip.h:141: error: expected specifier-qualifier-list before 'u_char'
  8. /usr/include/netinet/ip.h:190: error: field 'ippseudo_src' has incomplete type
  9. /usr/include/netinet/ip.h:191: error: field 'ippseudo_dst' has incomplete type
  10. /usr/include/netinet/ip.h:192: error: expected specifier-qualifier-list before 'u_char'
复制代码
环境  freebsd 8.2  

cc 编译后就这样了,请教下版上的高手,如何解决这个问题?   

3ks
昵称: zhanglistar  时间: 2011-05-18 15:11:00
code?
昵称: gvim  时间: 2011-05-18 17:29:00
发表评论
昵称:
内容:
验证: