编译器错误 C3011
并行区域内不允许直接使用内联程序集
omp
并行区域不能包含内联程序集指令。
下面的示例生成 C3011:
// C3011.cpp
// compile with: /openmp
// processor: /x86
int main() {
int n = 0;
#pragma omp parallel
{
_asm mov eax, n // Delete this line to resolve this error.
} // C3011
}
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈