VisualStudioのVC ++ディレクトリと、C / C ++およびリンカのインクルードディレクトリおよびライブラリディレクトリの違い



Difference Between Vc Directory Visual Studio



マイクロソフトの公式説明

VC++ Directories: Include Directories 1. this value is inherited from the INCLUDE Windows environment variable which is defined outside of Visual Studio 2. environment variables can be: global to the computer or have user level scope 3. The INCLUDE and LIB environment variables are created when the Microsoft Windows SDK is installed with Visual Studio. C/C++: Additional Include Directories 1. is a project level setting... you will have to define this value for every project in your solution 2. this value can be persisted to source control

分析



元のVC ++ディレクトリはMicrosoftWindows SDKに対応し、その変数もWindows環境変数(PATH)であり、C / C ++の設定は環境変数を設定せず、現在のプロジェクトに対してのみコマンドラインパラメーターを設定します。つまり、「VC ++ディレクトリ」は、このVSによってコンピューター上で作成されたプロジェクトがこの設定の影響を受ける限り、全世界に影響しますが、C / C ++は単一のプロジェクトにのみ影響します。

違い



ただし、VS2010以降、VC ++ディレクトリは単一のプロジェクトにのみ影響します。 VSの新しいバージョン間の主な違い:VC ++ディレクトリはWindows環境変数であり、C / C ++はコマンドラインパラメータであり、同じ項目の本質的な違いです。VC++ディレクトリの包含ディレクトリはCの追加の包含ディレクトリに対応します/ C ++、VC ++ディレクトリのライブラリディレクトリは、リンカーの追加のライブラリディレクトリに対応しており、どちらも同じ効果があります。