Sorry, I'm still confused.
As you said:
i suspect you could do it from inside the project properties by defining CC=ccache gcc to the preprocessor variables. same goes for g++
So, what's the exact steps I should do?
1, I just copy ccache.exe to the mingw/bin
2, I create a console project by Codeblocks' project wizard.
3, then, what should I do? Do I need to do some hack on the project build options?? or other modifications on project properties??? I have just add a Custom variables : CC = "ccache gcc", but it does Noting...