플랫폼 SDK를 깔아도 Iphlpapi.h가 오류가 날때
Application Tech/C,C++2008. 2. 21. 10:06
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)
--------------------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
출처 : 구글 검색
'Application Tech > C,C++' 카테고리의 다른 글
error C2447: missing function header (old-style formal list?) (0) | 2008.03.20 |
---|