VC ++不断要求重建解决方案 [英] VC++ keeps asking to rebuild solution

查看:126
本文介绍了VC ++不断要求重建解决方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
好的,这就是问题所在昨天,我像往常一样启动了VC ++,并开始了我的项目的工作.长话短说,当我尝试调试VC ++时问是否
我希望它可以构建所有4个项目,因为它们已经过时了,但是我在按下开始调试按钮之前就构建了解决方案:(,现在ive从一天或2天前开始有备份版本,而且接缝还不错:)但我不知道这是怎么回事,我怀疑项目解决方案有些混乱,但是不知道有人怎么能告诉我出了什么问题,以便我可以解决这个问题.

在此先感谢:thumbsup:.

解决方案

这很可能是您的时间戳问题.
如果您将时钟调回来(或从其他时区的某人处获得文件),则源文件的时间戳将比编译后的目标文件新,因此Visual Studio认为源文件已更改.

一个烦人的解决方法是打开每个文件并保存以更新时间戳.
或者,如果更改了时钟,只需放回时钟; P


其中一个源文件或一个公共标头将来可能会带有修改时间戳.这是我一次发生的事情,当我在夜间进行调试时,在夏令时结束时将计算机时钟自动设置为1小时,因此我的一个源文件似乎在将来被修改了.

Hi All,
ok heres the problem Yesterday i started VC++ as usual and started work on my project long story short when ever i try to debug VC++ asks if
i want it to build all 4 projects as thay are out of date but i built the solution just before i hit the start debuging button :( , now ive got a backed up version from a day or 2 ago and that seams fine :) but i dont know what is wrong with it, i suspect that a some how the project solution has gotten messed up but donno how so can some one PLEASE tell me what went wrong so that i can sort this out.

Thanks in Advance :thumbsup:.

解决方案

This is most likely a problem with your time stamps.
If you set your clock back (or got the files from someone in a different time zone) then the source files will have a newer time stamp than the compiled object files, hence Visual Studio thinks the source file has changed.

An annoying fix for this is to open every file and save it to update the time stamps.
Or, just put your clock back if you changed it ;P


One of the source files, or perhaps a common header, may have a modification timestamp in the future. This happened to me once when I was debugging on a night when the computer clock was automatically set 1 hr back at the end of the daylight saving time period, so one of my source files appeared to have been modified in the future.


这篇关于VC ++不断要求重建解决方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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