问题描述
我刚刚将相当大的MFC应用程序从VS2008升级到VS2013。经过一些小的调整(指定/ SAFESH:不,WINVER = 0x0601)一切正常,除了编辑和继续,它在VS2008下运行得非常好。 InVS2013,即使我只是添加注释行,它重新编译,说完成,然后抛出以下消息:
编辑并继续:错误1006:添加,重命名,删除或更改了数据类型或初始化的全局或静态变量:___ ImageBase(引用者:c:\ temp \ process \ debug \ jlglob.obj)
显然我没有改变全局变量。我在网上搜索并检查了以下没有帮助的东西:
- 禁用所有优化
- 设置编辑和继续/ ZI的程序数据库
- 不使用预编译标题
- / SAFESH:NO
- 平台工具集 - Visual Studio 2013(v120)
- 删除所有中间文件目录,包括.tlog文件
- 启用Native EnC,如在VS2008中
任何想法?这非常令人沮丧!!
I just upgraded my fairly large MFC application from VS2008 to VS2013. After some minor tweaks (specify /SAFESH:No, WINVER=0x0601) everything works except Edit and Continue, which worked brilliantly under VS2008. InVS2013, even if I just add a comment line, it recompiles, says "Done", and then throws out the following message:
Edit and Continue : error 1006 : A global or static variable was added, renamed, removed, or changed data type or initialization: ___ImageBase (referenced by: c:\temp\process\debug\jlglob.obj)
Clearly I have not changed a global variable. I have scoured the web and checked the following things, which have not helped:
- disabled all optimisation
- set "Program Database for Edit and Continue /ZI"
- not using Precompiled Headers
- /SAFESH:NO
- Platform Toolset - Visual Studio 2013 (v120)
- deleted all intermediate file directories, including .tlog files
- enable Native EnC, as in VS2008
Any ideas anyone? This is very frustrating!!
推荐答案
这篇关于VS2013:自从VS2008升级后,编辑并继续不再有效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!