플랫폼 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 |
---|---|
플랫폼 SDK를 깔아도 Iphlpapi.h가 오류가 날때 (2) | 2008.02.21 |
VC++ 6.0을 쓰고 있습니다.
IP Helper의 기능들을 사용해보고 싶은데, 환경구축을 어떻게 해야하나요?
IP Helper관련 헤더파일이나 DLL 같은 것이 기존 VC++ 6.0에는 없군요...
특별한 개발툴을 깔아야하나요?
조언 부탁드립니다.
플랫폼 SDK를 깔아보세요. ^^