Skip to content

Latest commit

 

History

History
32 lines (27 loc) · 757 Bytes

fatal-error-c1310.md

File metadata and controls

32 lines (27 loc) · 757 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Fatal Error C1310
Fatal Error C1310
11/04/2016
C1310
C1310
ac48aa51-8023-42fe-b844-3f8bf228fbef

Fatal Error C1310

profile guided optimizations are not available with OpenMP

You will not be able to link with /LTCG:PGI any module that was compiled with /GL.

The following sample generates C1310:

// C1310.cpp
// compile with: /openmp /GL /link /LTCG:PGI
// C1310 expected
int main()
{
   int i = 0, j = 10;

   #pragma omp parallel
   {
      #pragma omp for
      for (i = 0; i < 0; i++)
         --j;
   }
}