This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problem compiling MPI examples under cygwin


madfran wrote:
Hi,...

I have a probleme when I try to compile under cygwin.
The program it an example from MPICH2.
Following the advice of the people from MPICH2, I install MPICH2 under
WinXP, change the PATH to add the new addres and,... nothing, cygwin is
not able to find the include.

<snip>


madfran@8156 /cygdrive/c/cygwin/tmp/mpi/mpich2-1.0.6p1/examples
$ ls -l /cygdrive/c/"Program Files"/MPICH2/include/mpi.h
-rwxrwxrwx+ 1 madfran root 51473 Oct 30 16:05 /cygdrive/c/Program Files/MPICH2/include/mpi.h


madfran@8156 /cygdrive/c/cygwin/tmp/mpi/mpich2-1.0.6p1/examples
$ make clean

madfran@8156 /cygdrive/c/cygwin/tmp/mpi/mpich2-1.0.6p1/examples
$ make hellow
gcc  -I../src/include -I../src/include -O2  -c hellow.c
hellow.c:13:17: mpi.h: No such file or directory
hellow.c: In function `main':
hellow.c:21: error: `MPI_COMM_WORLD' undeclared (first use in this function)
hellow.c:21: error: (Each undeclared identifier is reported only once
hellow.c:21: error: for each function it appears in.)
make: *** [hellow.o] Error 1


You didn't tell it where the file was.  Try adding
'-I "/cygdrive/c/Program iles/MPICH2/include/mpi.h"' to your list of include
paths.

--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

_____________________________________________________________________

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]