Export (0) Print
Expand All

Fatal Error C1310

Error Message

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;
   }
}

Show:
© 2015 Microsoft