VC ++ 2008项目总是“过期” [英] VC++2008 project always "out of date"
问题描述
在一个解决方案中,我有两个VC ++项目。项目A具有由项目B编译的.obj文件的链接器输入。
In one Solution, I have two VC++ projects. Project A has linker inputs that are .obj files compiled by project B.
Visual Studio(2008)总是告诉我项目A是过时,并提示我询问是否要重建它,每次我想运行/ debug / build / etc。甚至在构建整个解决方案后立即:我做一个成功的完整构建,然后再次单击Build,它想重新链接Project A。
Visual Studio (2008) always tells me that project A is "out of date," and prompts me to ask if I want to rebuild it, every time I want to run/debug/build/etc. Even immediately after building the entire Solution: I do a successful full build, and then click Build again, and it wants to re-link Project A.
如何防止这从发生?任何人都明白这里发生了什么?
How can I prevent this from happening? Anyone understand what's going on here?
推荐答案
我刚刚遇到了 Visual Studio 2010 有和没有SP1),并感谢 Ted Nugent 我能够解决它。诀窍是检查项目中列出的所有C ++头文件是否仍然存在,并删除不存在的。显然这是编译器中的错误。
I just had this problem with Visual Studio 2010 (both with and without SP1) and thanks to Ted Nugent I was able to fix it. The trick is to check whether all C++ header files listed in the project still exist, and remove the non-existing ones. Apparently this is a bug in the compiler.
这篇关于VC ++ 2008项目总是“过期”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!