This question already has answers here:
fatal error C1900: Il mismatch between 'P1' version '20060201' and 'P2' version '20050411'
                                
                                    (3个答案)
                                
                        
                                6年前关闭。
            
                    
我遇到一个错误,我只是找不到问题,有人可以帮助我或解释错误吗?仍试图注释掉问题或搜索只是找不到任何线索,此错误只是伴随着该错误:

 1>Compiling...
1>option.cpp
1>Linking...
1>fatal error C1900: Il mismatch between 'P1' version '20060201' and 'P2' version '20050411'
1>LINK : fatal error LNK1257: code generation failed
1>Build log was saved at "file://c:\Users\modestas\Desktop\ybtx\code\game\gas\GameGas\Release\BuildLog.htm"
1>GameGas - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 12 up-to-date, 0 skipped ==========


没有代码,因为无法理解这种情况发生的位置。

最佳答案

这意味着,您在类中定义了InitVariantContainer声明,但未实现其主体:

void CCypherVariantHolderForDecode::InitVariantContainer(void)
{
  // ...
}

关于c++ - VC 2005错误“'P1'版本'20060201'和'P2'版本'20050411'之间的Il不匹配” ,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/16118404/

10-11 23:01
查看更多