QT5.7 + msvc13 +openmp

  • 在.pro文件中加入QMAKE_CXXFLAGS+=/openmp
  • main.cpp

include

include

int main()
{

ifndef _OPENMP

fprintf(stderr, "OpenMP not supported");

endif

pragma omp parallel for

for (char i = 'a'; i <= 'z'; i++)
std::cout << i ;
//std::cout< return 0;
}

你可能感兴趣的:(QT5.7 + msvc13 +openmp)