First, consider only the included paths.
The Microsoft documentation states that the compiler searches for directories in the following order:
Directories containing the source file.
Directories specified with the /I option in the order in which the CL encounters them.
Directories specified in the INCLUDE environment variable.
Now ["VC ++ Directories" β "Include Directories"] is documented as matching the INCLUDE variable. Ie, these directories are viewed last. According to the documentation.
And ["C / C ++" β "General" β "Additional inclusion directories"] is documented as the corresponding /I option. I., these directories are searched first. According to the documentation.
Since there is some good practice, itβs probably
to leave the option to enable overrides, and
to minimize the length of the command line of the compiler call (so as not to be shy about bad Windows & ndash, since I remember that there was / was a limit of 8 KB or so).
Ie, use ["VC ++ Directories" β "Include Directories"] by default.
A complete set of environment variable mappings:
["VC ++ Directories" β "Executable Directories"] β PATH
["VC ++ Directories" β "Include Directories"] β INCLUDE
["VC ++ Directories" β "Reference Directories"] β LIBPATH (for #using )
["VC ++ Directories" β "Library Directories"] β LIB
How did I find out about this?
Just press the GUI and press F1 for help. :-)
It is always a good idea for RTFM.
Cheers and hth.,
source share