Thursday, June 18, 2009

cl.exe results in mspdb80.dll was not found error

cl is the Visual C++ Compiler that comes with Visual Studio. So today I needed to compile me some C code. Ok, lets do this. Path not found. Easy enough, add C:\Dev\Tools\VisualStudio\VC\bin to my path. "mspdb80.dll was not found" error. Bullocks.

Most of the internet chatter was about running vcvars32(which calls vsvars32) or vcvarsall which SHOULD HAVE set the environment variables, but did not. Maybe it was a bad install or maybe maybe maybe. Too much work. Don't need another rabbit hole.

So all you need to do is set another path var to C:\Program Files\Common Files\Microsoft Shared\VSA\8.0\VsaEnv (or wherever your mspdb80.dll is located). In like Flynn.

So you wanna use cl? To sum it up set two new path vars
C:\{visual-studio}\VC\bin
C:\Program Files\Common Files\Microsoft Shared\VSA\8.0\VsaEnv

No comments:

Post a Comment