Hi,
I've got LAM-MPI compiled and running, and C programs compile and
run great. However, I'm trying to compile a Fortran-based program
and I'm getting a linking error about "multiple definitions of symbol
_atexit". Could this be due to some linker flags I set wrong? Here
are my linker flags:
LD="/usr/local/lammpi/bin/mpif77 -o" \
LDFLAGS="-O2 -ffast-math --allow-multiple-definition" \
Here's the exact error I'm getting:
/usr/local/lammpi/bin/mpif77 -o DLPOLY.X setup_module.o .......
/usr/bin/ld: multiple definitions of symbol _atexit
/usr/local/lib/gcc/powerpc-apple-darwin8.6.0/4.2.0/crt3.o private
external definition of _atexit in section (__TEXT,__text)
/usr/lib/libdl.dylib(atexit.So) definition of _atexit
/usr/bin/ld: multiple definitions of symbol ___cxa_atexit
/usr/local/lib/gcc/powerpc-apple-darwin8.6.0/4.2.0/crt3.o private
external definition of ___cxa_atexit in section (__TEXT,__text)
/usr/lib/libdl.dylib(atexit.So) definition of ___cxa_atexit
collect2: ld returned 1 exit status
Thank you!
Aaron Thompson
Vanderbilt University
aaron.p.thompson_at_[hidden]
|