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
Can you help me out?
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With