visual c libraries:
VSVars32.bat would be for when you are building from a command prompt. It sets the environment variables necessary for compiling from a command line (but only for that command window, that session).
When building from inside the IDE, you instead use the "Directories" settings page.
-ATR-
-----Original Message-----
From: Nick Z.
Posted At: Tuesday, November 01, 2005 9:54 PM
Posted To: microsoft.public.dotnet.languages.vc.libraries
Conversation: Cannot compile any cpp programs
Subject: Re: Cannot compile any cpp programs
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.
[quoted text, click to view] Willy Denoyette [MVP] wrote:
> 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.
>
>
> <pacemkr@gmail.com> wrote in message
> news:1130860913.797023.276330@g43g2000cwa.googlegroups.com...
>
>>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.
>>
>>Willy Denoyette [MVP] wrote:
>>
>>>That would mean that - ...\Microsoft Visual Studio .NET 2003\Common7\IDE
>>> is not in your "path" environment variable.
>>>
>>>Willy.
>>>
>>>
>>>"Nick Z." <pacemkr@gmail.com> wrote in message
>>>news:2XD9f.1034$ex4.539@fe08.lga...
>>>
>>>>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.
>>
>
Thanks for clearing that up for me. Everything works now. =)
Nick Z.
[quoted text, click to view] Andy Rich wrote:
> VSVars32.bat would be for when you are building from a command prompt. It sets the environment variables necessary for compiling from a command line (but only for that command window, that session).
>
> When building from inside the IDE, you instead use the "Directories" settings page.
>
> -ATR-
> -----Original Message-----
> From: Nick Z.
> Posted At: Tuesday, November 01, 2005 9:54 PM
> Posted To: microsoft.public.dotnet.languages.vc.libraries
> Conversation: Cannot compile any cpp programs
> Subject: Re: Cannot compile any cpp programs
>
>
> 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.
>
> Willy Denoyette [MVP] wrote:
>
>>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.
>>
>>
>><pacemkr@gmail.com> wrote in message
>>news:1130860913.797023.276330@g43g2000cwa.googlegroups.com...
>>
>>
>>>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.
>>>
>>>Willy Denoyette [MVP] wrote:
>>>
>>>
>>>>That would mean that - ...\Microsoft Visual Studio .NET 2003\Common7\IDE
>>>>is not in your "path" environment variable.
>>>>
>>>>Willy.
>>>>
>>>>
>>>>"Nick Z." <pacemkr@gmail.com> wrote in message
>>>>news:2XD9f.1034$ex4.539@fe08.lga...
>>>>
>>>>
>>>>>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.
>>>
Don't see what you're looking for? Try a search.