these errors are due to using g++ 3.5, i.e. MinGW 3.5 (or 3.1.5? whatever) with the Automated Installer. The Automated Installer is deprecated and outdated. It installs g++ 3.x. Manual installation is necessary to get g++ 4.4.0. Wow. Buried on the MinGW website (as the formatting and layout is badly readable).