delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/02/03/17:37:35

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <47A641FC.40307@cygwin.com>
Date: Sun, 03 Feb 2008 17:36:44 -0500
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20070505 Remi/2.0.0.0-3.fc4.remi Thunderbird/2.0.0.0 Mnenhy/0.7.5.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Problem compiling MPI examples under cygwin
References: <20080201214323 DOT M38098 AT set-ezine DOT org> <47A394B9 DOT 9030202 AT cygwin DOT com> <20080201221059 DOT M7752 AT set-ezine DOT org>
In-Reply-To: <20080201221059.M7752@set-ezine.org>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

madfran wrote:
> Sorry, but the problem it is not so easy to solve.

I'd be surprised if my prescribed solution doesn't work for you.  You should
try it.

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

Actually, I consciously read your posting twice to make sure that you
didn't show some indication that the compiler should be able to find
the include file.  My recommendation is to do what I suggested and
take a look at the 'gcc' documentation.  If you have questions and/or
problems after that, then you can follow-up to this list or, more
appropriately, some gcc users list.  What you've demonstrated so
far would have the same problems on any POSIX platform, given the
install path you have for MPI.

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

This has no bearing on whether the compiler will find the include file.

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

This also has no bearing on whether the compiler will find the include file.

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

That, of course, is relevant but even if you didn't have permissions, that
still wouldn't explain your problem.

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019