帮忙看下这是什么错误
#include "pcap.h"void main( )
{
pcap_if_t *alldevs;
pcap_if_t *d;
int i=0;
char errbuf[PCAP_ERRBUF_SIZE];
if (pcap_findalldevs(&alldevs, errbuf) == -1)
{
fprintf(stderr,"Error in pcap_findalldevs_ex: %s\n", errbuf);
exit(1);
}
for(d= alldevs; d != NULL; d= d->next)
{
printf("%d. %s", ++i, d->name);
if (d->description)
printf(" (%s)\n", d->description);
else
printf(" (No description available)\n");
}
if (i == 0)
{
printf("\nNo interfaces found! Make sure WinPcap is installed.\n");
return -1;
}
pcap_freealldevs(alldevs);
return 0;
}
--------------------Configuration: WinPcap01 - Win32 Debug--------------------
Compiling...
WinPcap1.cpp
d:\vc\wpdpack\include\pcap-stdinc.h(79) : error C2144: syntax error : missing ';' before type 'unsigned int'
d:\vc\wpdpack\include\pcap-stdinc.h(79) : fatal error C1004: unexpected end of file found
执行 cl.exe 时出错.
WinPcap1.obj - 1 error(s), 0 warning(s)
改了半天了还是改不好。。