[MPICH] libmpich2.a in cygwin under WinXP - link with libmpi.a

Jayesh Krishna jayesh at mcs.anl.gov
Fri Feb 1 17:13:52 CST 2008


 Hi,
  The gcc lib equivalent to libmpich.a (provided with MPICH2 on unix) is
libmpi.a (provided with MPICH2 on windows). 
  I had provided information on how to compile MPI programs (in cygwin) in
my previous email. Please refer to my previous emails.

Regards,
Jayesh

-----Original Message-----
From: owner-mpich-discuss at mcs.anl.gov
[mailto:owner-mpich-discuss at mcs.anl.gov] On Behalf Of madfran
Sent: Friday, February 01, 2008 4:50 PM
To: mpich-discuss at mcs.anl.gov
Subject: [MPICH] libmpich2.a in cygwin under WinXP

Hi,...

Trying to compile the hellow.c found under the examples of the MPICH2/cygwin
distribution, I receive this error,

****************************************************************************
$ make hellow
gcc  -I../src/include -I../src/include -I/cygdrive/c/Progra~1/MPICH2/include
- L/ cygdrive/c/Progra~1/MPICH2/lib  -c hellow.c
make: *** No rule to make target `../lib/libmpich.a', needed by `hellow'.  
Stop.
****************************************************************************

The origin of the error is the instruction in makefile,

****************************************************************************
MPILIBNAME      = mpich
hellow: hellow.o   ../lib/lib${MPILIBNAME}.a
	$(C_LINK) $(CFLAGS) $(LDFLAGS) -o hellow hellow.o  ${LIBS}
****************************************************************************

I find in c:\Program Files\MPICH2\lib
these files,
libfmpich2g.a
libmpi.a
libmpicxx.a

Which is the equivalent to libmpich.a under WinXP ?








More information about the mpich-discuss mailing list