------- Comment #44 from boris at kolpackov dot net 2010-09-02 08:23 ------- I just ran into the same issue building (native) mingw32 GCC 4.5.1 using a x86-64 to mingw32 cross compiler. Adding -nostdinc++ to PCHFLAGS fixed this for me as well.
I also would like to point out that when building in this configuration the target libraries (libgcc, libstc++) are built using the cross-compiler. Since these libraries are internal to GCC (and can theoretically track the GCC version), I think it is reasonable to expect that the cross and native compilers are the exact same version of GCC. Using different versions in this setup is just asking for trouble. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40974