Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 Files\Microsoft Visual Studio 10.0\VC\bin;

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

screenshot

Can you help me out?

like image 358
Tim Avatar asked Jun 25 '11 07:06

Tim


People also ask

How do I know if CL exe is installed?

You can test that you have the C++ compiler, cl.exe , installed correctly by typing 'cl' and you should see a copyright message with the version and basic usage description.

What is Visual Studio Cl exe?

cl.exe is a tool that controls the Microsoft C++ (MSVC) C and C++ compilers and linker. cl.exe can be run only on operating systems that support Microsoft Visual Studio for Windows. You can start this tool only from a Visual Studio developer command prompt.


1 Answers

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

"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86

to set up an appropriate environment including the path.

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

like image 159
Michael Burr Avatar answered Sep 22 '22 16:09

Michael Burr