http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51320
--- Comment #7 from Andris Pavenis <andris.pavenis at iki dot fi> 2011-11-27 07:36:29 UTC --- Tested with native compiler for DJGPP both versions 2.03r2 and 2.04 pre. Compiles OK for both with and without optimization enabled (tried without, with -O2 and with -O3). I tested in DOS session under Windows Vista Business XP2 (32 bit) Also compiles OK with - Linux to DJGPP cross-compiler (GNU C++ (GCC) version 4.6.2 (i586-pc-msdosdjgpp)) - native compiler for Linux x86_64 (gcc version 4.6.1 20110908 (Red Hat 4.6.1-9) (GCC)) >From last attachment it seems that GCC fails very early not finding even cc1plus. So I suspect a problem with DJGPP installation. I would suggest to - Run 'gcc -print-prog-name=cc1plus' and see what it outputs. If it outputs only 'cc1plus' without full path then the GCC installation is broken - test whether You can compiler any C and C++ program at all - create a paralell fresh DJGPP installation with only required packages and retest