Jump to content
  • Advertisement
Sign in to follow this  
DirectXXX

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.

If you intended to correct an error in the post then please contact us.

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 this post


Link to post
Share on other sites
Advertisement
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,

Share this post


Link to post
Share on other sites
If you change a header file that gets included in all of them, then you will end up rebuilding the world. It also happens when you change a project setting. If you set any custom build settings make sure you did not use a variable like $(ProjectDir) in the build line -- it rebuilds everything just in case it changed since the last build.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!