LINK:致命错误LNK1104:无法打开文件“MSVCRTD.lib” [英] LINK : fatal error LNK1104: cannot open file 'MSVCRTD.lib'

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

问题描述

我是C ++的初学者。我得到错误 LINK:致命错误LNK1104:无法打开文件'MSVCRTD.lib'当我尝试调试任何项目在Microsoft Visual C ++ 2010 Express。我在Stackoverflow和谷歌搜索我应该做,但找不到答案。我理解文件msvcrtd.lib应该在地图\Microsoft Visual Studio 10.0 \VC\lib,但该文件不存在。我应该怎么办?

I'm a beginner at C++. I get the error LINK :fatal error LNK1104: cannot open file 'MSVCRTD.lib' when I try to debug any project in Microsoft Visual C++ 2010 Express. I searched on Stackoverflow and Google for what I should do, but couldn't find an answer. What I have understood the file msvcrtd.lib should be in the map \Microsoft Visual Studio 10.0\VC\lib, but that file doesn't exist. What should I do?

推荐答案

转到您的项目属性,从左侧选择链接器。将此添加到其他库目录

Go to your project properties, select Linker from left. Add this to "Additional Library Directories":

"(Your Visual Studio Path)\VC\lib"

例如:

C:\Program Files\Microsoft Visual Studio 10.0\VC\lib

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

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