NOTE: You are mixing two different MinGW setups; please use ONLY one of them!!!!!!
MinGW Setups used below
1. C:\Dev-Cpp\
2. C:\Program Files\CodeBlocks\MinGW
Have you ever complied this source code/project/Library list with MinGW GCC/G++ before?
Looks like someone imported an MSVC compiler project based on the Library names; note, this is just a guess on my part. So, far all the libs I have checked were in MinGW GCC.
In other words, why are you using MS Visual C/C++ Libraries with an Code::Blocks MinGW GCC/G++ project; instead of the more common MinGW Libs?
Note, in some cases it makes sense, but in an Hello World test it does not make much sense.
Tim S