Hello,
I also have problems trying to build/compile code. I get the same error message you were getting, what exactly did you do to solve it? Sorry, i couldn't exactly tell what you did from your posts, I'm relatively new to Codeblocks and programming in general.
Thanks,
Alixx