Saturday, January 20, 2007

Execute cl.exe pops up mspdb80.dll not found error

If you install the Visual Studio 2005, and if you want to execute the cl compiler from the 
command line, definitely, you can get an error pops up.

Under windows standard command line, a dialog with string like "Cannot find mspdb80.dll" will come out;

Under cygwin command line, some unknown error dialog will come out;
     p.s.: Until now, I still can not fix the problem under cygwin.

Solution to Windows Standard Command line:

Just run the script "vcvarsall.bat" before invoking cl.exe program. Then the development environment will be set well for the current command line. After a successful string comes up, all is done, you can use the cl.exe normally.

2 comments:

Unknown said...

1) add to Path the ...\VC\bin
for example add
C:\Program Files\Microsoft Visual Studio 8\VC\bin

2) start->run->cmd-> vcvars32.bat

Rkumar said...

Thanks a lot.. you saved my whole day