分享方式:


編譯器警告 (層級 1) C4964

未指定優化選項;不會收集設定檔資訊

已指定 /GL /LTCG ,但未要求任何優化,因此不會產生 .pgc 檔案,因此不會產生任何設定檔引導優化。

如果您想要在執行應用程式時產生 .pgc 檔案,請指定其中 一個 /O 編譯器選項。

下列範例會產生 C4964:

// C4964.cpp
// compile with: /W1 /GL /link /ltcg:pgi
// C4964 expected
// Add /O2, for example, to the command line to resolve this warning.
int main() {
   int i;
}