开发者

How do I setup environment variable INCLUDE for Visual Studio 2005?

开发者 https://www.devze.com 2022-12-10 22:46 出处:网络
Is there a script that I can run that will setup my %INCLUDE% environment variable? I\'m running PC-lint and it can\'t find my include header files. I went through the documentation and it appears th

Is there a script that I can run that will setup my %INCLUDE% environment variable?

I'm running PC-lint and it can't find my include header files. I went through the documentation and it appears that I need to setup the %INCLUDE% environment variable. I was wondering if there's开发者_JS百科 an easy way to do it.


Visual Studio comes with a VCVARS32 (it might be renamed by now) batch file in its directory that will set all of these environment variables for you, and give you a shell with them set. It has a start menu entry, if you installed normally -- or maybe it came with the Platform SDK? It's been a while.

From the Microsoft documentation on the subject:

To run vcvars32.bat

  1. At the command prompt, change to the \bin subdirectory of your Visual C++ installation.

  2. Run vcvars32.bat by typing VCVARS32.

Barring that, you can permanently set your environment variables (per-system or per-user) in Control Panel, under System.

0

精彩评论

暂无评论...
验证码 换一张
取 消