Qt+winpcap报错:The C++ Standard Library forbids macroizing keywords. Enable warning C4005 to find the forbidden macro.

   工作需要,需要使用千兆网口的相机,为了快速抓取数据包需要使用WinPCAP开源包。

每次,再添加Iostream头文件后,就报错:The C++ Standard Library forbids macroizing keywords. Enable warning C4005 to find the forbidden macro.

    经过多次测试,需要在main.cpp函数的最前面添加:

#define _XKEYCHECK_H
然后,就一切运行正常!!

不太理解为什么,有知道希望可以写下答案!!

 


 

posted @ 2019-08-01 19:58  盖世猪猪侠  阅读(1414)  评论(1编辑  收藏  举报