无法构建PortAudio - “LNK1104:无法打开文件”ksguid.lib“ [英] Can't Build PortAudio - "LNK1104: cannot open file 'ksguid.lib'"

查看:928
本文介绍了无法构建PortAudio - “LNK1104:无法打开文件”ksguid.lib“的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是C / C ++的初学者,所以请随身携带。



我正在尝试构建PortAudio库,的我的项目。我使用VS 2013,建筑的预设项目文件必须转换为我的版本。我已经能够解决在我的长途上发生的所有许多问题,除了一个:

 链接:fatal错误LNK1104:无法打开文件'ksguid.lib'

我看过, stackoverflow


I'm a beginner in C/C++, so please bear with me.

I'm trying to build the PortAudio library so I can use it in one of my project. I'm using VS 2013, the preset project-file for builds had to be converted to my version. I've been able to fix all the many problems that occurred on my long way here, except one:

LINK : fatal error LNK1104: cannot open file 'ksguid.lib'

I've seen this and this site. All of them address exactly this problem, yet non of them has been able to solve it. Here are the solutions these sites suggest:

  • Add WASAPI - symbol to portaudio.def,
  • Add PA_WDMKS_NO_KSGUID_LIB - definition to the preprocessor

解决方案

You can get the ksguid.lib-file from the Windows 7 SDK. It might even already be installed on your computer. It's best to use the explorer to find it (probably C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Lib\x64).

When you found it, go back to Visual Studio and go to Project > Properties > Configuration-Properties > Linker > Input, then click on the little arrow on the right of Additional Dependencies and choose edit:

Enter the absolute filepath to ksguid.lib. Make sure that you surrounded it with "-s and that you put a ; at the end. (Throws an error without a usable description otherwise - Microsoft as we know it.)

Source: Bitbucket, stackoverflow

这篇关于无法构建PortAudio - “LNK1104:无法打开文件”ksguid.lib“的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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