------- Comment #1 from pinskia at gcc dot gnu dot org 2009-11-04 21:19 ------- That is because the way you configured GCC with --with-sysroot=/mingw/test/sysroot Since that is true, it adds the sysroot to C:/MinGW/test/prefix/include. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41943