Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: daniel_silva on February 20, 2026, 05:42:58 pm

Title: Codeblocks sometimes doesn't recompile a project if I changed something
Post by: daniel_silva on February 20, 2026, 05:42:58 pm
Sometimes when I make a change to a cpp file, codeblocks doesn't recompile the program, I need to rebuild the project so I can see my changes.

Sometimes it does this and I don't know how to fix, I think restarting my pc fixes it temporarily.

I am on linux mint 22.3

Name                   : Code::Blocks
Version                : 25.03-r13644
SDK Version            : 2.25.0
Scintilla Version      : 3.7.5
Title: Re: Codeblocks sometimes doesn't recompile a project if I changed something
Post by: ollydbg on February 21, 2026, 04:12:36 am
Is the cpp file(for example, you have a a.cpp file) included in your cbp project file?
You may check the modified "timestamp" of the cpp file, because Code::Blocks use this time information to track whether the file get changed or not.
Title: Re: Codeblocks sometimes doesn't recompile a project if I changed something
Post by: daniel_silva on February 21, 2026, 09:13:44 am
Thanks, it was this timestamp thing, I was changing the date of my OS to test my program (it uses dates in some ways), some cpp files had future timestamps