编译器错误 C2850
“construct”:仅在文件范围内允许:可能不在嵌套构造中
构造(例如某些 pragma)只能出现在全局范围内。
以下示例生成 C2850:
// C2850.cpp
// compile with: /c /Yc
// try the following line instead
// #pragma hdrstop
namespace X {
#pragma hdrstop // C2850
};
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈