Visual studio c++ Link1104 cannot open file MSVCURTD.lib

一个人想着一个人 提交于 2020-01-14 10:16:07

问题


I have opened a project made with visual studio 2012 express (written in c++) with visual studio 2017 community, when I try to compile I get the following mistake:

LINK1104 cannot open file MSVCURTD.lib

(I don't have this mistake if I compile with vs 2012) I am not a c++ expert so I don't know how to solve this problem

Thanks for your help...


回答1:


I had the same problem and I was able to fix it as suggested by MGetz. This answer just adds more detail.

Open the project's property pages, via the Project menu (Project/Properties) or from the context menu on the project in the solution explorer.

Find Platform Toolset in the General section.

Open the drop down list and select <inherit from parent or project defaults> if that option is present.

This worked for me. In my case that resulted in selection of the toolset Visual Studio 2010 (v100), but I think that will be dependent on what toolsets you have installed.

After selecting the toolset, Visual Studio indicates it next to the project name in the solution explorer.

If the option <inherit from parent or project defaults> is not available, then try one of the others. Since you said that your project was created with Visual Studio 2012, you should probably try selecting that version.




回答2:


I restarted installer and chose Universal Windows Platform runtime. That is correct solution because there is a real possibility that one does not have the old VC SDK version installed. If old not installed the choosing older SDK would not work.



来源:https://stackoverflow.com/questions/48209046/visual-studio-c-link1104-cannot-open-file-msvcurtd-lib

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