VS2008编译错误:error C2065: 'PMIB_TCPSTATS' : undeclared identifierc:program files (x86)micros(示
Posted makeview660
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了VS2008编译错误:error C2065: 'PMIB_TCPSTATS' : undeclared identifierc:program files (x86)micros(示相关的知识,希望对你有一定的参考价值。
安装了VS2008编译之前的程序,结果出现了编译错误,以为是VS2008的Sp1补丁没装好,重装补丁后还是不行,编译错误如下:
双击错误会定位在iphlpapi.h中,
一个可行的解决办法是:把iphlpapi.h文件的line386---line421 都注释掉了:
然后再尝试编译,编译成功,运行也没有问题。
看起来,这几行代码不会影响程序运行。
以上是关于VS2008编译错误:error C2065: 'PMIB_TCPSTATS' : undeclared identifierc:program files (x86)micros(示的主要内容,如果未能解决你的问题,请参考以下文章