What is the difference between the LIB and LIBPATH environment variables for MS Visual C/C++?
问题 I've been working on some build scripts, and this is bugging me. I want to be sure that we're independent of environment settings, but in order to be sure of that I feel a need to understand how/where the settings are used by the tools. The Visual Studio command prompt and/or vcvarsall.bat file set up two distinct environment variables: LIB and LIBPATH. The values are different, but partially overlapping. Here are the values from my system: LIB=C:\Program Files (x86)\Microsoft Visual Studio