配置好winpcap环境后,如果编译时出现remote-ext.h(417) : error C2143:syntax error : missing ';' before '*'错误,这可能是因为在项目中引用的头文件顺序出现了错误。引用的头文件中有pcap.h和remote-ext.h两个,正确的的引用顺序为:
#include "pcap.h"
#include<remote-ext.h>
如果颠倒了会报上述错误
配置好winpcap环境后,如果编译时出现remote-ext.h(417) : error C2143:syntax error : missing ';' before '*'错误,这可能是因为在项目中引用的头文件顺序出现了错误。引用的头文件中有pcap.h和remote-ext.h两个,正确的的引用顺序为:
#include "pcap.h"
#include<remote-ext.h>
如果颠倒了会报上述错误