Skip to main content
gamedev.net
🔒 Locked

[Solution Found][C++ 2003] Compiling weirdness

Started by Xrystal Jun 29, 2007 at 2:10 AM 3 replies 850+ views
Original Post
Xrystal
Xrystal
For the last few days I have noticed something weird happening when I compile my program. If I choose to rebuild all it compiles fine as it deletes any intermediate files it creates and thus the program runs as expected. However, if I choose rebuild to recompile just the files that have been changed it acts as if nothing has been changed and thus the program runs as if I had made no changes to the code. It's no biggie as I just remember to choose Rebuild each time but its annoying having to rebuild all source files when only 1 has changed. Has anyone else come across this before ? Does anyone know what could be causing it ? Thanks [Edited by - Xrystal on June 29, 2007 2:04:40 PM]
Structural
Structural
Perhaps if you delete every intermediary files in the project directory too. Like the *.suo and *.user files. And throw away the entire output directory. Perhaps there's a timestamp in one of those files that is not correct.
STOP THE PLANET!! I WANT TO GET OFF!!
Ezbez
Ezbez
Try remaking the project/solution file if nothing else works.
wack
wack
Quote:
Original post by Xrystal
Does anyone know what could be causing it ?


The visual studio build system is file timestamp based. If you have been setting the computer clock back and forth while working with your program, that might be the cause.
Xrystal
Xrystal
Okay, here goes.

Ended up doing the following before it would work.

1) Delete all files in output folder.
2) Recompiled - OK
3) Resaved source file thus adjusting its timestamp.
4) Recompiled - Registered nothing to compile
5) Closed all files currently open in IDE
6) Recompiled - OK
7) Repeated step 3 and successfully rebuilt everytime.

So must be something to do with the project file itself.

Thanks for the input guys.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.