LNK1104 cannot open file '…lib.obj'

佐手、 提交于 2019-12-10 19:26:46

问题


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 cannot open file 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\lib.obj'

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

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?


回答1:


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".




回答2:


Check your path. If that's correct then make sure you've written xxx.lib rather than xxx



来源:https://stackoverflow.com/questions/38752320/lnk1104-cannot-open-file-lib-obj

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!