LNK1104无法打开文件'... lib.obj'

LNK1104无法打开文件'... lib.obj'

问题描述:

我正在尝试更新Visual Studio 2012 C ++项目,以便可以在Visual Studio 2015(更新3)中对其进行编译.我已经将它缩小到我完全陷入的一个项目中的一个错误:

I'm trying to update Visual Studio 2012 C++ projects so that I can compile them in Visual Studio 2015 (Update 3). I've gotten it narrowed down to just one error in one project that I'm completely stumped on:

LNK1104无法打开文件'C:\ Program Files(x86)\ Microsoft Visual Studio 14.0 \ VC \ lib.obj'

LNK1104 cannot open file 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\lib.obj'

我已经安装了所有C ++语言选项(默认情况下未安装),甚至卸载并重新安装了Visual Studio.

I've installed all the C++ language options (they don't get installed by default) and even uninstalled and reinstalled Visual Studio.

该文件在该目录中不存在,在Visual Studio 2012目录中也不存在.

That file doesn't exist in that directory, and it also doesn't exist in the Visual Studio 2012 directory either.

有人对如何解决这个问题有任何想法吗?

Anyone have any ideas on how to solve this?

问题可能是您在链接器输入中添加了诸如"$(VC_LibraryPath_x86)xxxx.lib"之类的其他依赖项.这会出错,从而导致错误.它应该只是"xxxx.lib".

The problem might be that you added something like "$(VC_LibraryPath_x86)xxxx.lib" to the Linker input additional dependencies. This goes wrong, resulting in the error. It should just be "xxxx.lib".