> Date: Sat, 11 Jul 2009 03:59:25 +0400 > From: Konstantin <kosta...@yandex.ru> > > Checking whether W32 API headers are too old... > > C:\Temp\emacs\nt>gcc -c junk.c > In file included from > c:\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/windef.h:253, > from > c:\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/windows.h:48, > from junk.c:1: > c:\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/winnt.h:37:20: > error: string.h: No such file or directory > In file included from > c:\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/ole2.h:9, > from > c:\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/windows.h:114, > from junk.c:1: > c:\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/objbase.h:12:20: > error: stdlib.h: No such file or directory
You didn't install mingw-runtime-X.YZ.tar.gz. That's where the libraries and header files (like string.h and stdlib.h) are. Btw, I don't really understand why you are having all these difficulties. What instructions did you use to install MinGW? This page: http://www.mingw.org/wiki/Getting_Started which is the second Google hit for "mingw", and is also present on the main MinGW page (http://www.mingw.org/), says: Manual Installation As an alternative to the automated installer, you may install MinGW by manually downloading and uncompressing individual components. Download at least the following (or newer) packages from the MinGW download page: binutils gcc-core mingw-runtime w32api These are the minimum requirements for a working mingw-gcc-toolchain for C. And each one of the 4 items is a link to download the corresponding archive from sourceforge. I didn't actually try the links -- are they incorrect or something? There's another link from the main MinGW page (http://www.mingw.org/): http://www.mingw.org/wiki/HOWTO_Install_the_MinGW_GCC_Compiler_Suite has the "Manual Installation" section which also points to the same 4 basic packages that you need to download and install. > pfff... in case of success, it will result in my instruction for teapots :) Well, would you care to share with us how did you miss the instructions above? Perhaps the wording of the instructions needs some tweaking to become more clear, but please tell how.