The default complier in Code::Blocks is for 32bit(x86). So, MinGW W64 that supports 64bit(x86_64) compiler must be installed.
More:
Download
Installation
Complier Setting