解决'PMIB_ICMP_EX':undeclared identifier

FreeEIM 飞鸽传书编译问题总结,最近对FreeEIM 进行了更新,结果编译的时候出现了许多错误,是什么导致这些错误呢?我花了半天时间才得以解决,现在总结一下。
--------------------Configuration: EIM02 - Win32 Release--------------------
Compiling...
StdAfx.cpp
C:Program FilesMicrosoft SDKIncludeIPHlpApi.h(183) : error C2065: 'PMIB_ICMP_EX' : undeclared identifier
C:Program FilesMicrosoft SDKIncludeIPHlpApi.h(183) : error C2146: syntax error : missing ')' before identifier 'pStats'
C:Program FilesMicrosoft SDKIncludeIPHlpApi.h(183) : warning C4229: anachronism used : modifiers on data are ignored
C:Program FilesMicrosoft SDKIncludeIPHlpApi.h(185) : error C2059: syntax error : ')'
C:Program FilesMicrosoft SDKIncludehtmlhelp.h(373) : error C2061: syntax error : identifier 'DWORD_PTR'
C:Program FilesMicrosoft SDKIncludehtmlhelp.h(382) : error C2061: syntax error : identifier 'DWORD_PTR'
Error executing cl.exe.
freeeim.exe - 5 error(s), 1 warning(s)
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.
In your MS Visual C++ settings, under Tools -> Options -> Directories, make sure that you've got the SDK include and lib directories before anything else in the relevant file settings (for include and lib files).You need to do a clean to your project and then a full rebuild.
意思就是,把 SDK 的目录往前移动一下Include Files里面,SDK 的Directories,我是把它放在第一位的,这样错误就消失了。

你可能感兴趣的:(职场,sdk,休闲,飞鸽传书,FreeEIM)