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

   Work requirements, require the use of Gigabit Ethernet ports of the camera, in order to quickly grab the packets need to use WinPCAP open source packages.

Each time, after Iostream add headers, on the error:. The C ++ Standard Library forbids macroizing keywords Enable warning C4005 to find the forbidden macro.

    After several tests, we need to be added on top main.cpp function:

#define _XKEYCHECK_H 
Then, just everything runs smoothly! !

Not quite understand why there is to know hope to write down the answers! !

 

 

 

Guess you like

Origin www.cnblogs.com/almn/p/11284946.html