Fatal Error C1310
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at 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;
}
}
Show: