하늘높이의 프로그래밍 이야기

Iphlpapi.h 에서 아래와 같은 오류가 날때

--------------------Configuration: EINet - Win32 Release--------------------
Compiling...
INetE.cpp
C:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\Iphlpapi.h(183) : error C2065: 'PMIB_ICMP_EX' : undeclared identifier
C:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\Iphlpapi.h(183) : error C2146: syntax error : missing ')' before identifier 'pStats'
C:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\Iphlpapi.h(183) : warning C4229: anachronism used : modifiers on data are ignored
C:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\Iphlpapi.h(185) : error C2059: syntax error : ')'
Error executing cl.exe.

EINet.dll - 3 error(s), 1 warning(s)

Hi, I had the same problem. In SDK is new Iprtrmib.h which define PMIB_ICMP_EX. But in path for include in VC I had first path to directory whith old Iprtrmib.h (originally in VC6) without PMIB_ICMP_EX. You must replace Iprtrmib.h or change path. Jirka

출처 : 구글 검색

Comment +2