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
<atomho...@gmail.com> 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@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
> us...@open-mpi.org
> http://www.open-mpi.org/mailman/listinfo.cgi/users
>

Reply via email to