Mingw32 compilation - attempt two


Click here for full thread
Gets Around
Hi,

Unfortunately, all that I wrote about mingw32 compilation is wrong. My new Mingw32 installation conflicts with the old one, and the resulting executable is not able to work with MPI.

So I took the computer on which never was neither MPI nor Mingw (on WindowsXP).
I installed the current versions of Mingw and MPI, copy MPI in home folder and try to compile:
gcc -c -I. -I/home/amnikitin/MPICH2/include -I/home/amnikitin/nwchem-6.5/src/inc
lude -I/home/amnikitin/nwchem-6.5/src/tools/install/include -DLINUX -DGFORTRAN -
DGFORTRAN -DCHKUNDFLW -DGCC4 -DGCC46 -DPARALLEL_DIAG -DNEED_LOC -DJOBTIMEPATH=\"
/home/amnikitin/nwchem-6.5/bin/LINUX\" -DNWCHEM_SRCDIR="\"/home/amnikitin/nwchem
-6.5/src\"" -DBYTE_SHORT_PACKING   -DBYTE_SHORT_PACKING   -m32 -g  -o linux_prin
taff.o linux_printaff.c
linux_printaff.c:2:19: fatal error: sched.h: No such file or directory
 #include <sched.h>
                   ^
compilation terminated.
make[1]: *** [/home/amnikitin/nwchem-6.5/lib/LINUX/libnwcutil.a(linux_printaff.o
)] Error 1
make: *** [libraries] Error 1

The result is reproduced on another computer with Windows7.

Which versions of mingw32 and MPI used developers?