Author Topic: Compiling problems with CodeBlocks  (Read 3497 times)

Patrick_C

  • Guest
Compiling problems with CodeBlocks
« on: June 16, 2008, 10:52:43 am »
Hello

I'm having a problem with the compile and run feature. A while ago when i
used the compile and run feature normally, it compiled only the files which were modified.
But one day it just changed suddenly. It started to compile the hole project each time i do
even a little change in a single file. I've tried to make new project files etc. Tried even to
reinstall CodeBlocks with no help. It seems that my project doesn't keep itself up to date anymore.. :/
Some other projects work properly, and i've tried to mimic properties from them.. no help..
I would really appreciate help on this problem. Thanks!


Patrick
« Last Edit: June 24, 2008, 08:29:20 am by Patrick_C »

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Problems with build & run feature. (Compiling only modified files)
« Reply #1 on: June 16, 2008, 11:20:30 am »
For the project(s) not working:
Could you inspect the time stamp of your source files whether it's plausible? I had an issue in a VM recently where (by mistake) I set the year 2007 in 2008. Thus all files were always compiled as they were all "created" in the future. This may also happening if you copy / sync files from another machine which differs in the system time.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Patrick_C

  • Guest
Re: Problems with build & run feature. (Compiling only modified files)
« Reply #2 on: June 16, 2008, 11:37:05 am »
Yes, system times are okay on both machines. And time stamps on source file are also valid
Any other suggestions? So yeah, the fact is that project is done between two different machines.
Other machine is running on vista and other on XP

EDIT: Problem solved, it was the time stamps on some files. I just happened to notify these differences in some files by accident.
So I downloaded the FileDate Changer V1.1 from:  http://www.nirsoft.net/utils/filedatech.html  and told the program to change all of the file dates :)
« Last Edit: June 24, 2008, 09:19:12 am by Patrick_C »