News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Codeblocks sometimes doesn't recompile a project if I changed something

Started by daniel_silva, February 20, 2026, 05:42:58 PM

Previous topic - Next topic

daniel_silva

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

ollydbg

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.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

daniel_silva

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