My compiler (which happens to be gcc) does not complain about it (and I see no reason why target should be const, either).
Mind posting the full commandline including the exact error message?
Sorry, I forgot the revision, is 2746.
I'll take off the 'const' again and post the mesage...
Here is it :
:: === Code::Blocks, sdk ===
sdk\compilercommandgenerator.cpp:581: error: prototype for `wxString CompilerCommandGenerator::GetOrderedOptions(ProjectBuildTarget*, OptionsRelationType, const wxString&, const wxString&)' does not match any in class `CompilerCommandGenerator'
sdk\compilercommandgenerator.h:42: error: candidate is: virtual wxString CompilerCommandGenerator::GetOrderedOptions(const ProjectBuildTarget*, OptionsRelationType, const wxString&, const wxString&)
:: === Build finished: 2 errors, 0 warnings ===
btw, or the 'target' must be 'const' in cpp file, or he mustn't be const in header file....
Ciao
Max