LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Dev Anand (danand_at_[hidden])
Date: 2003-12-23 09:27:41


hi ,
     trying to compile the sppm benchmark on lam.
I got the the intel fortran and C/C++ (ifort , icc)
compilers. My makefile looks like
------------------------------------------------------------------------------------
SYS=IBM

FC = mpif77 # # Fortran compiler
LD = mpif77 # # loader
CC = mpicc # # C compiler
M4 = m4 -Uformat # # m4 preprocessor
CPP = cpp # # cpp preprocessor

CPPOPT= -DMPI -traditional # # use MPI
LIBDIR = # # MPI library path
INCDIR= -I/usr/local/include # MPI include path

THMODE = -DTHREADED=0 # # don't use threads
-------------------------------------------------------------------------------------------------
I think I am getting link time errors now any insights
Thanks
Dev

-----------------------------------------------------------------------------------------------------
mpif77 main.o sppm.o runhyd3.o bdrys.o \
                 cpthreads_sppm_IBM.o c_io.o timers.o \
 -o run/sppm
main.o(.text+0xc4): In function `MAIN__':
: undefined reference to `changedir_'
main.o(.text+0x1078): In function `MAIN__':
: undefined reference to `flush__'
main.o(.text+0x1f93): In function `rsdump_':
: undefined reference to `rsopen_'
main.o(.text+0x1fa2): In function `rsdump_':
: undefined reference to `binwrite_'
main.o(.text+0x1fb1): In function `rsdump_':
: undefined reference to `binwrite_'
main.o(.text+0x1fc0): In function `rsdump_':
: undefined reference to `binwrite_'
main.o(.text+0x1fcf): In function `rsdump_':
: undefined reference to `binwrite_'
main.o(.text+0x2024): In function `rsdump_':
: undefined reference to `binwrite_'
main.o(.text+0x203d): In function `rsdump_':
: undefined reference to `rsclose_'
main.o(.text+0x20b8): In function `restart_':
: undefined reference to `rsopen_'
main.o(.text+0x20c7): In function `restart_':
: undefined reference to `binread_'
main.o(.text+0x20d6): In function `restart_':
: undefined reference to `binread_'
main.o(.text+0x20e5): In function `restart_':
: undefined reference to `binread_'
main.o(.text+0x20f4): In function `restart_':
: undefined reference to `binread_'
main.o(.text+0x214d): In function `restart_':
: undefined reference to `binread_'
main.o(.text+0x216e): In function `restart_':
: undefined reference to `rsclose_'
main.o(.text+0x51ac): In function `setup_':
: undefined reference to `imread_'
main.o(.text+0x51db): In function `setup_':
: undefined reference to `imread_'
main.o(.text+0x57c2): In function `idumpbob_':
: undefined reference to `brickwrite_'
main.o(.text+0x5826): In function `idumpbob_':
: undefined reference to `brickwrite_'
main.o(.text+0x5901): In function `idumpbob_':
: undefined reference to `brickwrite_'
main.o(.text+0x59c1): In function `icdump_':
: undefined reference to `cdclose_'
main.o(.text+0x5a45): In function `icdump_':
: undefined reference to `cdwrite_'
main.o(.text+0x5bfd): In function `icdump_':
: undefined reference to `cdwrite_'
main.o(.text+0x5d40): In function `icdump_':
: undefined reference to `cdopen_'
main.o(.text+0x5f94): In function `var0d_':
: undefined reference to `cdwrite_'
main.o(.text+0x6153): In function `mesho3_':
: undefined reference to `cdwrite_'
main.o(.text+0x61d4): In function `mesho3_':
: undefined reference to `cdwrite_'
main.o(.text+0x6274): In function `mesho3_':
: undefined reference to `cdwrite_'
main.o(.text+0x630d): In function `mesho3_':
: undefined reference to `cdwrite_'
main.o(.text+0x63ab): more undefined references to `cdwrite_' follow
make: *** [run/sppm] Error 1