Cannot open include file: 'iphlpapi.h': No such file or directory(最终解决方法)

今天在看《windows网络与通信程序设计》,按照书上的例子输入了一个程序,编译结果提示:

   Cannot open include file: 'iphlpapi.h': No such file or directory

   好不容易在网上找到了iphlpapi.h文件,结果又提示:can not open file 'IPHlpApi.Lib'

   又是一头雾水,说要安装什么SDK,找了半天,找到一个可以用的连接,在下面贴出来:  http://apps.hi.baidu.com/share/detail/18952922

  安装上面的方法就可以完全安装SDK了。另外关于如何在VC中导入IPHlpApi.Lib,等等类似的库文件,最直接的方法就是:

   1、将IPHlpApi.Lib拷贝到工程目录下

   2、Project -> Add to Project -> Files,找到IPHlpApi.Lib文件,就可以了

Cannot open include file: 'iphlpapi.h': No such file or directory(最终解决方法)

原文地址:https://www.cnblogs.com/520zijuan/p/2913740.html