Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.0k views
in Technique[技术] by (71.8m points)

visual studio 2010 - VC++ cl.exe -- DLL not found

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;

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

screenshot

Can you help me out?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...