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
然后,就一切运行正常!!

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

 

猜你喜欢

转载自www.cnblogs.com/almn/p/11284946.html