Cannot compile any cpp programs

  • Thread starter Thread starter Nick Z.
  • Start date Start date
N

Nick Z.

Whenever I try to compile a VC++ program using VS .NET 2003 I get an
error saying mspdb71.dll not found.

How can I fix this error?
PS. I ran vsvars32.bat and it did not change a thing.

Thanks,
Nick Z.
 
Nick said:
Whenever I try to compile a VC++ program using VS .NET 2003 I get an
error saying mspdb71.dll not found.

How can I fix this error?
PS. I ran vsvars32.bat and it did not change a thing.

It sounds like your VC 7.1 installation is corrupted - you might try doing a
repair or reinstall.

-cd
 
Thank you for the suggestion, unfortunately I already tried reinstalling
VS .NET. This is one bizarre problem.

I really REALLY do not want to wipe the system.

Thanks,
Nick Z.
 
Ran both, didn't work.
As far as I know the environmental variables are set successfully by
these two.

Thanks,
Nick Z.
 
I should note that copying all contents of
....\Microsoft Visual Studio .NET 2003\Common7\IDE
to
....\Microsoft Visual Studio .NET 2003\Vc7\bin

"solves" the problem, I am able to compile etc.
However, this approach is not really elegant and might be causing
another problem just waiting to happen.

Thanks,
Nick Z.
 
That would mean that - ...\Microsoft Visual Studio .NET 2003\Common7\IDE
is not in your "path" environment variable.

Willy.
 
Nick,

You may have tried this as well, but you could try totally uninstalling the
program, deleting the left over folder, then reinstall from scratch. Could
be something in memory was keeping something from installing or something
like that (although I've never had a bad install so this is mostly
speculation).

Tom
 
I set the variable to ...\Microsoft Visual Studio .NET 2003\Common7\IDE
typing the following in command prompt:

set path=C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE

Next I run VS .NET and the problem is still there.

Now here is something strange.
After I restart the system I check the environmental variables by
typing "set[enter]" in the command prompt and I see that the path
variable is C:\Windows\system32.

So my guess is something is wrong with how environmental variables are
treated on my system? Also, do I need to restart the computer for the
setting of variables to take effect.

Thanks,
Nick Z.
 
The left over folder was not deleted, but repairing/reinstalling was
done.
If it was I who was doing it, I would remove the folder, but I had to
take it to the laptop help desk at my university(I rent the VS licence
from them). I will go again today (since my ms office setup was screwed
in the process of reinstalling vs anyway) and ask that they remove the
remaining folders.

Thanks,
Nick Z.
 
Not sure why you mentioned vsvars32.bat, the environment set-up by this
batch file isn't used by VS.NET, you'll have to check your Executable files
settings in VS itself (Select Tools/Options and go to Projects and
Solutions - VC++ Directories - Executable files) .

Willy.


I set the variable to ...\Microsoft Visual Studio .NET 2003\Common7\IDE
typing the following in command prompt:

set path=C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE

Next I run VS .NET and the problem is still there.

Now here is something strange.
After I restart the system I check the environmental variables by
typing "set[enter]" in the command prompt and I see that the path
variable is C:\Windows\system32.

So my guess is something is wrong with how environmental variables are
treated on my system? Also, do I need to restart the computer for the
setting of variables to take effect.

Thanks,
Nick Z.
That would mean that - ...\Microsoft Visual Studio .NET 2003\Common7\IDE
is not in your "path" environment variable.

Willy.
 
Wow. I feel very stupid now (and I should).
I cannot believe I missed that whole settings page.
I added ...\Microsoft Visual Studio .NET 2003\Common7\IDE and of course
everything works now. Still don't know how it got deleted, but thats
another question.

As for vsvars32.bat, I googled, and apparently that solved it for people
who were having the same problem. Weird.

Thank you so much,
Nick Z.
Not sure why you mentioned vsvars32.bat, the environment set-up by this
batch file isn't used by VS.NET, you'll have to check your Executable files
settings in VS itself (Select Tools/Options and go to Projects and
Solutions - VC++ Directories - Executable files) .

Willy.


I set the variable to ...\Microsoft Visual Studio .NET 2003\Common7\IDE
typing the following in command prompt:

set path=C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE

Next I run VS .NET and the problem is still there.

Now here is something strange.
After I restart the system I check the environmental variables by
typing "set[enter]" in the command prompt and I see that the path
variable is C:\Windows\system32.

So my guess is something is wrong with how environmental variables are
treated on my system? Also, do I need to restart the computer for the
setting of variables to take effect.

Thanks,
Nick Z.
That would mean that - ...\Microsoft Visual Studio .NET 2003\Common7\IDE
is not in your "path" environment variable.

Willy.



I should note that copying all contents of
...\Microsoft Visual Studio .NET 2003\Common7\IDE
to
...\Microsoft Visual Studio .NET 2003\Vc7\bin

"solves" the problem, I am able to compile etc.
However, this approach is not really elegant and might be causing
another
problem just waiting to happen.

Thanks,
Nick Z.


Nick Z. wrote:

Whenever I try to compile a VC++ program using VS .NET 2003 I get an
error saying mspdb71.dll not found.

How can I fix this error?
PS. I ran vsvars32.bat and it did not change a thing.

Thanks,
Nick Z.
 
Back
Top