' ProcessName' urlmon.h中未声明的标识符

时间:2018-05-29 15:13:53

标签: c++ visual-studio

与Git合作并刚刚引入同事的更改,这些更改导致我的本地版本失败,其中包含来自Windows套件的错误。该解决方案建立在构建服务器和我的同事的开发机器上。

搜索这些错误似乎不会带来任何结果,所以我想我会在这里查看。

  

c:\ program files(x86)\ windows kits \ 10 \ include \ 10.0.14393.0 \ um \ _ objidlbase.h(296):错误C2065:' ProcessName':未声明的标识符

     

c:\ program files(x86)\ windows kits \ 10 \ include \ 10.0.14393.0 \ um \ _ objidlbase.h(296):错误C2513:' IAsyncManager':在&#之前没有声明变量39; ='

     

c:\ program files(x86)\ windows kits \ 10 \ include \ 10.0.14393.0 \ um \ _ objidlbase.h(5394):错误C2065:' ProcessName':未声明的标识符

     

c:\ program files(x86)\ windows kits \ 10 \ include \ 10.0.14393.0 \ um \ cguid.h(47):error C2065:' ProcessName&#39 ;: undeclared identifier

     

c:\ program files(x86)\ windows kits \ 10 \ include \ 10.0.14393.0 \ um \ cguid.h(49):error C2065:' ProcessName&#39 ;: undeclared identifier

     

c:\ program files(x86)\ windows kits \ 10 \ include \ 10.0.14393.0 \ um \ cguid.h(57):error C2065:' ProcessName&#39 ;: undeclared identifier

     

c:\ program files(x86)\ windows kits \ 10 \ include \ 10.0.14393.0 \ um \ cguid.h(63):error C2065:' ProcessName&#39 ;: undeclared identifier

     

c:\ program files(x86)\ windows kits \ 10 \ include \ 10.0.14393.0 \ um \ urlmon.h(310):错误C2065:' ProcessName':未声明的标识符

     

c:\ program files(x86)\ windows kits \ 10 \ include \ 10.0.14393.0 \ um \ urlmon.h(310):错误C2513:' IInternetSecurityManager':在&#之前没有声明变量39; ='

     

c:\ program files(x86)\ windows kits \ 10 \ include \ 10.0.14393.0 \ um \ urlmon.h(345):错误C2065:' ProcessName':未声明的标识符

     

c:\ program files(x86)\ windows kits \ 10 \ include \ 10.0.14393.0 \ um \ urlmon.h(345):错误C2513:' IInternetHostSecurityManager':在&#之前没有声明变量39; ='

     

c:\ program files(x86)\ windows kits \ 10 \ include \ 10.0.14393.0 \ um \ urlmon.h(352):错误C2065:' ProcessName':未声明的标识符

     

c:\ program files(x86)\ windows kits \ 10 \ include \ 10.0.14393.0 \ um \ urlmon.h(352):错误C2513:' IInternetZoneManager':在&#之前没有声明变量39; ='

     

c:\ program files(x86)\ windows kits \ 10 \ include \ 10.0.14393.0 \ um \ urlmon.h(493):错误C2065:' ProcessName':未声明的标识符

     

c:\ program files(x86)\ windows kits \ 10 \ include \ 10.0.14393.0 \ um \ urlmon.h(494):错误C2065:' ProcessName':未声明的标识符

     

c:\ program files(x86)\ windows kits \ 10 \ include \ 10.0.14393.0 \ um \ urlmon.h(6864):错误C2065:' ProcessName':未声明的标识符

     

c:\ program files(x86)\ windows kits \ 10 \ include \ 10.0.14393.0 \ um \ urlmon.h(6865):错误C2065:' ProcessName':未声明的标识符

     

c:\ program files(x86)\ windows kits \ 10 \ include \ 10.0.14393.0 \ um \ urlmon.h(7071):错误C2065:' ProcessName':未声明的标识符

     

c:\ program files(x86)\ windows kits \ 10 \ include \ 10.0.14393.0 \ um \ urlmon.h(8033):错误C2065:' ProcessName':未声明的标识符

     

c:\ program files(x86)\ windows kits \ 10 \ include \ 10.0.14393.0 \ um \ urlmon.h(8447)​​:错误C2065:' ProcessName':未声明的标识符

     

c:\ program files(x86)\ windows kits \ 10 \ include \ 10.0.14393.0 \ um \ urlmon.h(8447)​​:错误C2513:' IInternetZoneManager *':之前未声明变量' ='

     

c:\ program files(x86)\ windows kits \ 10 \ include \ 10.0.14393.0 \ um \ urlmon.h(8571):错误C2065:' ProcessName':未声明的标识符

1 个答案:

答案 0 :(得分:1)

听起来Windows 10.0.14393.0 SDK存在问题,因为Visual Studio正在查找标题,而不是库。

尝试卸载并重新安装此SDK(您可能必须通过“程序和功能”而不是Visual Studio安装程序执行此操作。)