fatal error C1900: Il mismatch between 'P1' version '20080116' and 'P2' version '20070207'

转自:http://zengwu3915.blog.163.com/blog/static/2783489720105691622542/


【问题】

使用VS2008,debug成功,但Release时会报fatal error C1900的link错误:

1>------ Build started: Project: game_client, Configuration: Release Win32 ------

1>Linking...

1>fatal error C1900: Il mismatch between 'P1' version '20080116' and 'P2' version '20070207'

1>LINK : fatal error LNK1257: code generation failed

1>Build log was saved at "file://d:\work\wizard\output\game_client\Release\BuildLog.htm"

1>game_client - 1 error(s), 0 warning(s)

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


【原因】

VS2008没有安装SP1补丁


【解决】

下载并安装Microsoft免费提供的VS2008补丁
  • 如果VS2008是英文版,在这里下载

http://www.microsoft.com/downloads/details.aspx?FamilyID=27673c47-b3b5-4c67-bd99-84e525b5ce61&DisplayLang=en

  • 如果VS2008是中文版,在这里下载

http://www.microsoft.com/downloads/details.aspx?familyid=27673C47-B3B5-4C67-BD99-84E525B5CE61&displaylang=zh-cn


【yasi】

安装这里的英文版SP1之后,先前的错误确实不见了,项目build通过了。

安装这里的英文版的补丁之前(左)和之后(右)的版本信息对照如下(红框标记):注意,不是那个“Version 3.5 SP1”




你可能感兴趣的:(fatal error C1900: Il mismatch between 'P1' version '20080116' and 'P2' version '20070207')