请教winpcap例子的编译

begin_programe 2007-02-25 08:55:08
我编译winpcap的例子时出现如下错误:
9: syntax error : ')'
f:\net tools\winpcap\code\wpdpack_3_1\wpdpack\include\remote-ext.h(397) : error C2143: syntax error : missing ')' before '*'
f:\net tools\winpcap\code\wpdpack_3_1\wpdpack\include\remote-ext.h(397) : error C2143: syntax error : missing '{' before '*'
f:\net tools\winpcap\code\wpdpack_3_1\wpdpack\include\remote-ext.h(397) : error C2059: syntax error : ')'
f:\net tools\winpcap\code\wpdpack_3_1\wpdpack\include\remote-ext.h(407) : error C2061: syntax error : identifier 'pcap_remoteact_accept'
f:\net tools\winpcap\code\wpdpack_3_1\wpdpack\include\remote-ext.h(407) : error C2059: syntax error : ';'
f:\net tools\winpcap\code\wpdpack_3_1\wpdpack\include\remote-ext.h(407) : error C2059: syntax error : 'type'
d:\mycode\final\winpacp\winpacp.cpp(19) : warning C4013: 'pcap_findalldevs_ex' undefined; assuming extern returning int


请问是什么问题,winpcap的例子应该如果编译?我使用的是vs2005,谢谢
...全文
371 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
begin_programe 2007-02-25
  • 打赏
  • 举报
回复
这是错误的详细信息
Build Log Build started: Project: winpacp, Configuration: Debug|Win32
Command Lines Creating temporary file "d:\Mycode\final\winpacp\Debug\RSP00000835243480.rsp" with contents
[
/Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "WPCAP" /D "_UNICODE" /D "UNICODE" /Gm /EHsc /RTC1 /MDd /Yu"stdafx.h" /Fp"Debug\winpacp.pch" /Fo"Debug\\" /Fd"Debug\vc80.pdb" /W3 /c /Wp64 /ZI /TC .\winpacp.cpp
]
Creating command line "cl.exe @d:\Mycode\final\winpacp\Debug\RSP00000835243480.rsp /nologo /errorReport:prompt"
Output Window Compiling...
winpacp.cpp
f:\net tools\winpcap\code\wpdpack_3_1\wpdpack\include\remote-ext.h(393) : error C2143: syntax error : missing '{' before '*'
f:\net tools\winpcap\code\wpdpack_3_1\wpdpack\include\remote-ext.h(396) : error C2143: syntax error : missing ')' before '*'
f:\net tools\winpcap\code\wpdpack_3_1\wpdpack\include\remote-ext.h(396) : error C2081: 'pcap_if_t' : name in formal parameter list illegal
f:\net tools\winpcap\code\wpdpack_3_1\wpdpack\include\remote-ext.h(396) : error C2143: syntax error : missing '{' before '*'
f:\net tools\winpcap\code\wpdpack_3_1\wpdpack\include\remote-ext.h(396) : error C2059: syntax error : 'type'
f:\net tools\winpcap\code\wpdpack_3_1\wpdpack\include\remote-ext.h(396) : error C2059: syntax error : ')'
f:\net tools\winpcap\code\wpdpack_3_1\wpdpack\include\remote-ext.h(397) : error C2143: syntax error : missing ')' before '*'
f:\net tools\winpcap\code\wpdpack_3_1\wpdpack\include\remote-ext.h(397) : error C2143: syntax error : missing '{' before '*'
f:\net tools\winpcap\code\wpdpack_3_1\wpdpack\include\remote-ext.h(397) : error C2059: syntax error : ')'
f:\net tools\winpcap\code\wpdpack_3_1\wpdpack\include\remote-ext.h(407) : error C2061: syntax error : identifier 'pcap_remoteact_accept'
f:\net tools\winpcap\code\wpdpack_3_1\wpdpack\include\remote-ext.h(407) : error C2059: syntax error : ';'
f:\net tools\winpcap\code\wpdpack_3_1\wpdpack\include\remote-ext.h(407) : error C2059: syntax error : 'type'
d:\mycode\final\winpacp\winpacp.cpp(19) : warning C4013: 'pcap_findalldevs_ex' undefined; assuming extern returning int
Results Build log was saved at "file://d:\Mycode\final\winpacp\Debug\BuildLog.htm"
winpacp - 12 error(s), 1 warning(s)

18,356

社区成员

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

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