Looks like the type of errors you get when you don't link against the C++ runtime library. I don't know anything about how to configure Code::Blocks, but if you just do a google search for your error "undefined reference to __gxx_personality_sj0" you should find plenty of information on it.