what is happening to all these people is that they are downloading the CodeBlocks/MinGW package, it is jacked up as I ran into this same problem and took me 5 hours to figure it out, I found these videos on YouTube that helped me fix my problems and how to properly install both MinGW and CodeBlocks.
as the bundle download is messed up, and the install instructions are incorrect and lacking information, it is causing all these people to have the same problem.