When I run cmd.exe and type 'set' I have a %LIB% variable set. The value is pointing to a folder that doesn't exist, which causes warnings during Visual Studio compiles.
Here's the thing... If I go to System Properties->Advanced->Environment Variables it's not set in either User Variables or System Variables. It's also not set in my C:\Autoexec.bat.
Microsoft's Command Shell Overview gives a detailed description of where/how variables are stored.
The punchline is that User vars are stored in
HKCU\Environment
, and System vars are inHKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
.Not sure where it was set from, but I was able to get rid of it by setting it in
System Properties->Advanced->Environment Variables
to "c:\". I then could select it from the list and click delete. Afterward it was gone from my command prompt.If you run VS command prompt, you should be able to see LIB env there, I suppose. So the way you set this variable is primarily via visual studio. Go to Tools and click Options to get the window. There, find 'project and solutions' and click VC++ Directories if you work with C++. Then on the right hand side, you should see the menu 'Show directories for:' and when you click that button, you will see Library files. That is one of the places where you can specify your library path. HTH.