There are some errors when building with Code::Blocks using MinGW. There's a solution from someone in the link below and I have verified that it works. It would be great if this could be fixed in JUCE itself.
https://github.com/julianstorer/JUCE/pull/39
