OK, one last thing. Check that you are building with the correct tools. In Code::Blocks, go to Settings|Compiler and Debugger... and in the resulting dialog select the Toolchain Executables tab. Take a look the C++ Compiler and Linker for Dynamic libs entries - they should both be set to "mingw32-g++.exe". If somehow they have got set to "mingw32-gcc.exe" or something similar, that will cause problems.
If that fails, can you post the build log as an attachment. You might need to enable its creation in the Compiler and Debugger dialog's Build Options tab. It will be created in your project root directory and will be called something like myproj_build_log.html.