Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] How to get started?
From: jody (jody.xha_at_[hidden])
Date: 2008-10-02 06:00:20


It's difficult to tell what is going on without seeing the source code,
but the error message seems to indicate that you wrote
  #include "ompi.h"
instead of
  #include "mpi.h"

Jody

On Thu, Oct 2, 2008 at 9:07 AM, Anugraha Sankaranarayanan
<atomhouse_at_[hidden]> wrote:
>>Thank you, everyone.I have successfully installed the openmpi pkg in
>>my ubuntu hardy heron for gcc( HP Compaq Dual-core notebook) following
>>the instructions in the FAQ page.I still need to install the
>>libopenmpi-dev header file pkg.Will come back after doing that.
>
>>Anugraha.S
>
> I've installed the libopenmpi-dev and also openmpi-bin.I tried to compile a
> sample program and am getting this error,
> atom_at_atom-laptop:~$ mpicc sample.c -o sample
> sample.c:2:17: error: ompi.h: No such file or directory
> sample.c: In function 'main':
> sample.c:7: error: 'mpi_comm_world' undeclared (first use in this function)
> sample.c:7: error: (Each undeclared identifier is reported only once
> sample.c:7: error: for each function it appears in.)
>
> Am I using the wrong header file? I tried ompic.h too, but the same
> error.What do i have to do?
>
> Thanking in advance,
> S.Anugraha.
>
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users
>