X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org From: "madfran" To: cygwin AT cygwin DOT com Subject: Re: Problem compiling MPI examples under cygwin Date: Fri, 1 Feb 2008 17:10:59 -0500 Message-Id: <20080201221059.M7752@set-ezine.org> In-Reply-To: <47A394B9.9030202@cygwin.com> References: <20080201214323 DOT M38098 AT set-ezine DOT org> <47A394B9 DOT 9030202 AT cygwin DOT com> X-Mailer: OpenWebMail 2.52 20060502 X-OriginatingIP: 83.182.135.183 (madfran) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (host.digival.net [0.0.0.0]); Fri, 01 Feb 2008 17:10:59 -0500 (EST) X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Sorry, but the problem it is not so easy to solve. If you read carrefully my original post, you realize that: >madfran AT 8156 /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 >madfran AT 8156 /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. >madfran AT 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 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. > > > > > madfran AT 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 AT 8156 /cygdrive/c/cygwin/tmp/mpi/mpich2-1.0.6p1/examples > > $ make clean > > > > madfran AT 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. > > -- -- 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/