OpenMp 警告:忽略#pragma opm parallel

OpenMp warning: ignoring #pragma opm parallel

我在 Windows 上使用 OpenMP 指令输入“g++ test1.c -openmp -Wall”后收到此警告:

wtest1.c:6: warning: ignoring #pragma opm parallel [-Wunknown-pragmas] #pragma opm parallel for private(x)

OpenMp 似乎无法正常工作。我该怎么办?

#pragmaomp,不是#pragmaopm