CodeBlocks Arduino IDE - real C++ IDE for Arduino development (rev.20130827)

I bet you have not changed build target from "Simulator" to an actual arduino board type. You also need to enable compile and link option for Wire library (right click the Wire.cpp in libraries sub-folder in project view).