Hi

Linking the following program with mpicc from openmpi-1.0 compiled
with gcc-4.0 on a IA32 linux box

*************************
#include <stdio.h>
#include "mpi.h"

int main() {

int argc; char **argv;

MPI_Fint *f_status;
                       ;
        MPI_Init(&argc, &argv);

f_status = MPI_F_STATUS_IGNORE;
f_status = MPI_F_STATUSES_IGNORE;

        MPI_Finalize();

    ; return 0; }
**************************

with command "<openmpi-1.0>/bin/mpicc ts_MPI_F_STATUS_IGNORE.c" produces
unresolved references of MPI_F_STATUS(ES)_IGNORE (which are both defined
in mpi.h).

Here is ompi_info:

Open MPI: 1.0r8189    Open MPI SVN revision: r8189
                Open RTE: 1.0r8189
   Open RTE SVN revision: r8189
                    OPAL: 1.0r8189
       OPAL SVN revision: r8189
...
 Configured architecture: i686-pc-linux-gnu
              C bindings: yes
            C++ bindings: yes
      Fortran77 bindings: yes (all)
      Fortran90 bindings: yes
              C compiler: /soft/apps/packages/gcc-4.0.0/bin/gcc-4.0
     C compiler absolute: /soft/apps/packages/gcc-4.0.0/bin/gcc-4.0
            C++ compiler: /soft/apps/packages/gcc-4.0.0/bin/g++-4.0
   C++ compiler absolute: /soft/apps/packages/gcc-4.0.0/bin/g++-4.0
      Fortran77 compiler: /soft/apps/packages/gcc-4.0.0/bin/gfortran-4.0
  Fortran77 compiler abs: /soft/apps/packages/gcc-4.0.0/bin/gfortran-4.0
      Fortran90 compiler: /soft/apps/packages/gcc-4.0.0/bin/gfortran-4.0
  Fortran90 compiler abs: /soft/apps/packages/gcc-4.0.0/bin/gfortran-4.0
             C profiling: yes
           C++ profiling: yes
     Fortran77 profiling: yes
     Fortran90 profiling: yes
          C++ exceptions: no
          Thread support: posix (mpi: no, progress: no)
  Internal debug support: no
     MPI parameter check: runtime
Memory profiling support: no
Memory debugging support: no
         libltdl support: 1
...


A.Chan

Reply via email to