The real question seems to be, why are you linking against libcodeblocks in the first place? I can't find that file on my system, either. It's not linked against by default, either, at least not for the kind of programs I write. It might be needed for either a dll or a wxWidgets project, but in that case, it should be present - and it's not.
Find out where it's linked (it's probably in your project's build options) and ask yourself who put it there and why. And then try removing it - if the project compilers without it, problem solved.