If C::B works before you install XCode, I guess XCode change your compilation environment.
Verify in C::B that compiler's parameters are fine, like, by example, path to mingw.
Can you give us more details about compilation errors you have?
Because with so little detail, we can not do more than pure guessing.