compile on linux

From: Guanglei Cui <gcui_at_ic.sunysb.edu>
Date: Thu 02 Mar 2000 22:11:59 -0500

Hi,
    after figuring out the problem with the head file, there's still
some problems with the linking. it seems the library couldn't be found.
the error message is as followed:
....
mexit.o: In function `mexit_':
mexit.o(.text+0x35): undefined reference to `mpi_abort__'
mexit.o(.text+0x46): undefined reference to `mpi_finalize__'
mexit.o(.data+0x0): undefined reference to `mpi_dup_fn__'
mexit.o(.data+0x4): undefined reference to `mpi_null_delete_fn__'
mexit.o(.data+0x8): undefined reference to `mpi_null_copy_fn__'
egb.o: In function `egb_':
egb.o(.text+0x10a4): undefined reference to `mpi_allgatherv__'
egb.o(.text+0x1b80): undefined reference to `mpi_allreduce__'
egb.o(.data+0x0): undefined reference to `mpi_dup_fn__'
egb.o(.data+0x4): undefined reference to `mpi_null_delete_fn__'
egb.o(.data+0x8): undefined reference to `mpi_null_copy_fn__'
yammpnb.o(.data+0x0): undefined reference to `mpi_dup_fn__'
yammpnb.o(.data+0x4): undefined reference to `mpi_null_delete_fn__'
yammpnb.o(.data+0x8): undefined reference to `mpi_null_copy_fn__'
collect2: ld returned 1 exit status
make: *** [sander] Error 1
    I checked mpif.h in the include directory, there is no definition of
mpi functions at all. mpi.h does have these definitions. what could the
problem be? i'm missing some additional libraries?

-- 
Guanglei Cui
Department of Chemistry
State University of New York
Stony Brook, NY 11794-3369
Received on Thu Mar 02 2000 - 19:11:59 PST
Custom Search