Problem compiling MPI examples under cygwin

2008-02-01 Thread madfran
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.

Attached the test done.


madfran

**
*
[EMAIL PROTECTED] /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

[EMAIL PROTECTED] /cygdrive/c/cygwin/tmp/mpi/mpich2-1.0.6p1/examples
$ make clean

[EMAIL PROTECTED] /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

[EMAIL PROTECTED] /cygdrive/c/cygwin/tmp/mpi/mpich2-1.0.6p1/examples
$ which mpi.h
/cygdrive/c/Program files/MPICH2/include/mpi.h

[EMAIL PROTECTED] /cygdrive/c/cygwin/tmp/mpi/mpich2-1.0.6p1/examples
$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/cygwin/lib:/cygdrive/c
/P
rogram files/MPICH2/lib:/cygdrive/c/Program 
files/MPICH2/include:C:/Perl/bin/:/c
ygdrive/c/WINNT/system32:/cygdrive/c/WINNT:/cygdrive/c/WINNT/System32/Wbem:/cy
gd
rive/c/Program Files/HPQ/IAM/bin:/cygdrive/c/Program Files/Common 
Files/Autodesk
 Shared/:/cygdrive/c/program files/IXOS/IXOS-eCONtext/bin:/cygdrive/c/program 
fi
les/IXOS/IXOS-
eCONtext/opt/ORA/bin:/cygdrive/c/Oracle/ora8iclient/bin:/cygdrive/
c/Program 
Files/Oracle/jre/1.1.7/bin:/cygdrive/c/Oracle/ora81/bin:/cygdrive/c/pg
p:/cygdrive/c/Program Files/Common Files/AspenTech 
Shared/:/cygdrive/c/Program F
iles/Nmap:/cygdrive/c/Program files/MPICH2/bin:/cygdrive/c/PGP:/usr/bin

[EMAIL PROTECTED] /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

[EMAIL PROTECTED] /cygdrive/c/cygwin/tmp/mpi/mpich2-1.0.6p1/examples
**

--
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/



Re: Problem compiling MPI examples under cygwin

2008-02-01 Thread madfran
Sorry, but the problem it is not so easy to solve.

If you read carrefully my original post, you realize that:

>[EMAIL PROTECTED] /cygdrive/c/cygwin/tmp/mpi/mpich2-1.0.6p1/examples
>$ which mpi.h /cygdrive/c/Program files/MPICH2/include/mpi.h

That means which is able to find mpi.h

>[EMAIL PROTECTED] /cygdrive/c/cygwin/tmp/mpi/mpich2-1.0.6p1/examples
>$ echo 
$PATH//usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/cygwin/lib:/cygd
rive/c/Program files/MPICH2/lib:/cygdrive/c/Program files/MPICH2/include:.

That means the PATH is correct.

>[EMAIL PROTECTED] /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

That means I have rights over mpi.h

madfran


On Fri, 01 Feb 2008 16:52:57 -0500, Larry Hall (Cygwin) wrote
> 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.
> 
> 
> 
> > [EMAIL PROTECTED] /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
> > 
> > [EMAIL PROTECTED] /cygdrive/c/cygwin/tmp/mpi/mpich2-1.0.6p1/examples
> > $ make clean
> > 
> > [EMAIL PROTECTED] /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.
> 
> -- 


--
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/