Open MPI logo

Open MPI User's Mailing List Archives

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

Subject: Re: [OMPI users] need help with a code segment
From: Jeff Squyres (jsquyres_at_[hidden])
Date: 2009-08-11 16:27:59


Are you including <mpi.h>?

I notice you have a -D for OMPI_MPI_ -- perhaps <mpi.h> is only
included if you -DLAM_MPI_...? (that's a total guess)

On Aug 11, 2009, at 4:18 PM, Borenstein, Bernard S wrote:

> I'm trying to build a code with OPENMPI 1.3.3 that compiles with LAM/
> MPI.
>
> It is using mpicc and here is the code segment and error :
>
> void drt_pll_init(int my_rank,int num_processors);
> #ifdef DRT_USE_MPI
> #include <mpi.h>
> MPI_Comm drt_pll_mpi_split_comm_world(int key);
> #else
> int drt_pll_mpi_split_comm_world(int key);
> #endif
>
> /fltapps/boeing/cfd/mpi/openmpi1.3.3_intel91_64/bin/mpicc -I/fltapps/
> boeing/cf
> mpi/openmpi1.3.3_intel91_64/include -DDRT_PARALLEL -DDRT_USE_MPI -
> DPRECISION=2
> -O -I../../P3Dlib/src -I/include -I/fltusr/borensbs/local/include -
> DOMPI_MPI_
> -c -o drt_dv_app.o drt_dv_app.c
> drt_Lib.h(336): error: identifier "MPI_Comm" is undefined
> MPI_Comm drt_pll_mpi_split_comm_world(int key);
> ^
>
> compilation aborted for drt_dv_app.c (code 2)
> make[1]: *** [drt_dv_app.o] Error 2
>
> Hope someone can help
>
> Bernie Borenstein
> The Boeing Company
>
>
>
> __________ Information from ESET NOD32 Antivirus, version of virus
> signature database 4326 (20090811) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users

-- 
Jeff Squyres
jsquyres_at_[hidden]