我正在构建使用其他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不匹配
发布评论