共用方式為


編譯器錯誤 C2850

'construct' : 僅允許在檔案範圍;可能不在巢狀建構中

建構,例如某些 pragmas,只能出現在全域範圍。

下列範例會產生 C2850:

// C2850.cpp
// compile with: /c /Yc
// try the following line instead
// #pragma hdrstop
namespace X {
   #pragma hdrstop   // C2850
};