VC++ cl.exe -- 找不到 DLL [英] VC++ cl.exe -- DLL not found

查看:26
本文介绍了VC++ cl.exe -- 找不到 DLL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将 VS2010(不是 SP1)C++ 编译器的 bin 目录添加到我在 Windows XP 上的 PATH 变量中.当我尝试运行它时,它告诉我找不到 DLL.我将此行添加到我的 PATH:

I added the bin directory of the VS2010 (not SP1) C++ compiler to my PATH variable on Windows XP. When i try to run it, it tells me that a DLL was not found. I added this line to my PATH:

C:Program FilesMicrosoft Visual Studio 10.0VCin;

更新:我cd到上面的bin目录,然后运行编译器还是失败

Update: it still fails when I cd to the bin directory above, and then run the compiler

你能帮帮我吗?

推荐答案

运行VS命令提示符快捷方式或者它指向的批处理文件,如:

Run the VS command prompt shortcut or the batch file it points to, such as:

"C:Program Files (x86)Microsoft Visual Studio 10.0VCvcvarsall.bat" x86

设置适当的环境,包括路径.

to set up an appropriate environment including the path.

顺便说一下,mspdb100.dll 位于 C:Program FilesMicrosoft Visual Studio 10.0Common7IDE 中.但无论如何运行快捷方式/批处理文件 - 它不仅仅设置正确的路径.

By the way, mspdb100.dll lives in C:Program FilesMicrosoft Visual Studio 10.0Common7IDE. But run the shortcut/batch file anyway - it does more than set up the correct path.

这篇关于VC++ cl.exe -- 找不到 DLL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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