Il mismatch between 'P1' version '20080116' and 'P2' version '20070207'

前端 未结 4 1439
死守一世寂寞
死守一世寂寞 2021-01-04 12:18

I am building MFC application which uses other c++ library.I am using vs 2008 and compiled all the library project in vs 2008.

It is compiling well in debug mode but

4条回答
  •  逝去的感伤
    2021-01-04 12:34

    In Microsoft terminology, P1 is the parser (front-end), and P2 is the code generator (back-end). With link-time code generation (LTGC) enabled, the result of P1 is stored in a file and P2 is performed later at link time.

    If you downgraded your compiler, you should do a full rebuild, otherwise the link step will try to use the incompatible P1 output, which will trigger that error.

    If you upgraded the compiler, Visual Studio automatically does a full rebuild, so this should never happen (if it does anyway, just perform a full rebuild).

提交回复
热议问题