News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

10.05 rebuilds project every time

Started by rogster001, November 29, 2010, 12:50:39 PM

Previous topic - Next topic

rogster001

Hi all,

Any advice here? I installed 10.05, however an FLTK project i am working on rebuilds every time, even if it is up to date
It did not do this in 8.05 and all i did was copy the folder over to the new installation codeblocks 10.05 folder.

I admit i have not yet checked this with other projects, i just wonder is it a known issue??

My build time is about 15minutes so its a major hassle and i am going to use makefiles if i can't fix it, or roll back the version.

The object files are generated and all project settings seem to be exactly as with other projects, i never really tinker there apart from linking libraries.

oBFusCATed

Check if the modification times of .o file and .h/cpp files are correct.
.o files should be newer than the source, otherwise C::B/the compiler thinks that there are changes in the source and rebuilds them.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

rogster001

Ok thanks, i will have a look,  if that was the case how would i remedy it though? access the object files somehow before doing the next build so that they are sure to be ahead?

oBFusCATed

Delete them or use the touch equivalent command for your OS.
Also check the executable or any output files generated by the build.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

rogster001

i checked, all the .o files are ahead and timestamped within a few seconds of each other. I might jsut delete the object files anyway and try again, also i will consider new project and add new files and copy contents from old files into new project files, have already done a reinstall also.

~I will note that when i changed my dictories path for the compiler to "/mingw/include" it seemed to work as normal, it was pointing to fltk13/include but then i had to move my FLTK headers into the mingw include folder as mingw/include/FL and then the problem returned.

Jenna

Quote from: rogster001 on November 29, 2010, 01:43:29 PM
i checked, all the .o files are ahead and timestamped within a few seconds of each other. I might jsut delete the object files anyway and try again, also i will consider new project and add new files and copy contents from old files into new project files, have already done a reinstall also.

~I will note that when i changed my dictories path for the compiler to "/mingw/include" it seemed to work as normal, it was pointing to fltk13/include but then i had to move my FLTK headers into the mingw include folder as mingw/include/FL and then the problem returned.
Check the modification time of your sourc-files also, if they are in the future a rebuild will always be made.

Jenna


rogster001

thanks for help
QuoteCheck the modification time of your sourc-files also, if they are in the future a rebuild will always be made.

i think i just realised what mught be going on..my system time is messed up i could not be bothered setting it corerctly some time ago and its out by years, i will fix that , rebuild and everything should be tickety boo...i hope!

rogster001

The problem is resolved, updated system time, fixed! cheers ;->