# why MSVC compiles every cpp on changing a single cpp file

This topic is 5472 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

I have dozens of cpp files properly organized. Every thing was just fine. But i dont remember what i did in haste...Now when I compile a single file / build project, every cpp file( which was already compiled ) compiles. I have no idea about this sudden change in behaviour. I tried to create new solution and project but the problem remains. Also this is not a problem with my other msvc projects. Can anyone give me an idea of possible solutions? im using msvc++ 7.1

##### Share on other sites
It seems that you have a system date problem. If this is the case then you may try to edit all the files, save them agin, and recompile. This will change the date all all files (both .cpp and .obj). Once you've done that, you'll be able to work as usual.

If the problem do not come from the dates then, hey, it's funny :D

Regards,

• 15
• 22
• 17
• 46