无法打开文件winmm.lib Visual Studio 2017 [英] Cannot open file winmm.lib Visual Studio 2017

查看:911
本文介绍了无法打开文件winmm.lib Visual Studio 2017的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用Visual Studio 2017编写了一个程序,我得到了上面列出的错误我安装了sdk,我不确定我在互联网上发现的其他什么也没有用。

I have written a program using visual studio 2017 and I get the error listed above i installed the sdk and im not sure what else to do nothing ive found on the internet has seemed to work.

推荐答案

我认为您应该做的第一件事是验证这些库实际存在于磁盘上。假设Windows安装在C上,您应该在以下位置找到:

I think the first thing you should do is verify that these libraries actually exist on disk. Assuming that Windows is installed on C, you should find these at:

C:\Program Files(x86)\ Windows Wits\8.1\Lib\winv6.3 \\ \\ lt< platform>

C:\Program Files (x86)\Windows Kits\8.1\Lib\winv6.3\um\<platform>

或:

C:\Program Files(x86)\ Windows Kits \10 \ Lib \< version> \\\\< platform>

C:\Program Files (x86)\Windows Kits\10\Lib\<version>\um\<platform>

取决于您安装的Windows SDK。 < platform>将匹配您在Visual Studio中选择的平台(它位于顶部,具有Debug / Release和x86 / x64 / arm)。 Windows 10 SDK中的版本将与
项目属性中的版本匹配。

Depending on which Windows SDK you have installed. The <platform> will match the platform you selected in Visual Studio (it is the bit at the top that has Debug/Release and x86/x64/arm). The version in the Windows 10 SDK will match the version in the project properties.

如果在这些目录中找不到winmm.lib,那么最好安装Visual Studio 2017的修复程序。

If you can't find winmm.lib in these directories then it would be best to do a repair install of Visual Studio 2017.

如果找到winmm.lib,那么下一个问题是,您是否更改了Visual Studio中的任何路径。如果您创建一个新的空Windows桌面控制台项目,请执行以下操作:

If you do find winmm.lib, then the next question would be, did you change any of the paths in Visual Studio. If you create a new, empty windows desktop console project, does:

#pragma comment(lib, "winmm.lib")

int main()
{
    return 0;
}

构建没有错误?


这篇关于无法打开文件winmm.lib Visual Studio 2017的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆