#!/bin/sh
## Invoke g++ with ccache and pass all parameters to them
ccache gcc "$@"
#!/bin/sh
## Invoke g++ with ccache and pass all parameters to them
ccache g++ "$@"
What I am looking for is how/when .depend files are generated. These files contain dependencies at the source code level, e.g. which .cpp files depend on which .h files. For some reason in my case all .depend files are empty, so when a header file is modified .cpp files that depend on it are not re-compiled.OK, that makes sense; unfortunately I do not have much experience with .depend files.
You could also try Project->Properties...->Build targets (tab)->Dependencies...Sometimes I find that simply opening the External dependency window causes Code::Blocks to correctly generate .depend files.
#include "header.h"
#include <header.h>