4

I want to compile a code in software which is needed to call visual c++;My Os is windows cp professional; I've installed visual studio professional v10.but it still shows an error message indicating "check if bin directory of your visual c++ is included in the path environment variable", where this action must be done?


I added that Path but now it says " Check that Visual C++ has been installed correctly" how I gotta check? I executed a program in Visual C++ and it s working nicely.

3

Go to

System Properties (press windows key + pause/break)
Advanced
Environment Variables
System variables

Add the required path there

4

In a CMD prompt, type:

path

To add to your user account path:

setx path "%path%;C:\foo"

For the system path:

setx path "%path%;C:\foo" -m
  • I added that Path but now it says " Check that Visual C++ has been installed correctly" how I gotta check? I executed a program in Visual C++ and it s working nicely. – user44509 Aug 11 '10 at 16:04
  • %PATH% contains both user and machine components of the environment variable PATH. Running e.g. the command setx path "%path%;C:\foo" -m will effectively merge the two which is undesirable in most cases. Aside from that it will also overwrite the unexpanded paths with expanded ditto (%SYSTEMROOT%\System32 becomes e.g. C:\Windows\System32). – mandrake May 31 '12 at 8:26
  • @mandrake: Yes, you're right. It would be better to echo %PATH% | clip to get the path into the clipboard, edit it in Notepad and then use the full unexpanded path (with no duplicates) in the command above instead. – paradroid May 31 '12 at 9:20
1

Your visual studio installation should have added a menu item for under Tools for the VS 2008 command prompt - this will usually set the appropriate environment for you.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.