'P1'版本'20080116'和'P2'版本'20070207'之间的Il不匹配 [英] Il mismatch between 'P1' version '20080116' and 'P2' version '20070207'

查看:1008
本文介绍了'P1'版本'20080116'和'P2'版本'20070207'之间的Il不匹配的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建使用其他c ++库的MFC应用程序.我正在使用vs 2008,并在vs 2008中编译了所有库项目.

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

它在调试模式下编译良好,但无法在调试Unicode"模式,释放",释放Unicode"模式下运行.

It is compiling well in debug mode but failed to run in Debug Unicode mode,Release,Release Unicode mode.

我在网上发现需要安装VS 2008SP1,但是它是如何在调试模式下编译的.

I found in the net that VS 2008SP1 is required to be installed but how come it is compiling in debug mode.

请提出解决此问题的方法.

Please suggest how to overcome this problem.

推荐答案

如果编译包含多个项目的解决方案,则应使用相同的编译器(版本)来编译所有项目,以确保其有效.

If compiling a solution with multiple projects you should compile all projects with the same compiler (version) to be sure it works.

我曾经收到过和您一样的错误消息.如果我没记错的话,出现此问题是因为使用了链接时间代码生成.我的解决方案是全部重建,另一种解决方案可能是禁用链接时间代码生成.

I once got the same error message like you. If I remember correctly the problem occured because link time code generation was used. My solution was to rebuild all, another solution might have been disabling link time code generation.

这篇关于'P1'版本'20080116'和'P2'版本'20070207'之间的Il不匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆