Story: My hard drive was sinking. Partition tables going wild and CRC errors emitting everywhere so I thought that I might be a good idea to format it. So I threw everything over to my secondary disk and then formatted. However, everything didn't get onboard. A lot of stuff had already been affected by the plague, like the files in the MinGW folder.
So now when I finally have it all fixed I was intalling the files all over again and hoped for it to work again. Well it didn't.
(Start reading here if you don't like stories)
I am missing some folders inside the "lib" directory, like "gcc" which it's complaining about not having;
C:/Program Files/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/stdio.h:26:20: stddef.h: No such file or directory
I don't know why I don't have it this time, and neither do I remember how I installed everything the first time. I installed these packages, downloaded from the MinGW site:
gcc-g++-3.4.2-20040916-1.tar.gz
mingw-runtime-3.9.tar.gz
mingw-utils-0.3.tar.gz
w32api-3.6.tar.gz
binutils-2.15.91-20040904-1.tar.gz
gdb-5.2.1-1.exe
mingw32-make-3.80.0-3.tar.gz
EDIT: Oh wait, it's stddef.h and stddarg.h that's being a problem. Well, that's even stranger.