linking error using mpicc;

linking error using mpicc;

Hi,
Compiling test routines of PSPASES (a sparse parallel solver) gives linking error as follows:

mpif90 -fPIC -i_dynamic -o fcpspases_test pspases_testfc.o -L../metis -L../parMetis -L../PSPASES -lpspases -lparmetis -lmetis -lm -L /usr/local/apps/intel/fce/10.1.008/lib/ blas_LINUX.a -lifcore

pspases_testfc.o(.text+0x1204): In function `MAIN__':
: undefined reference to `dpspacef_'
pspases_testfc.o(.text+0x1f83): In function `MAIN__':
: undefined reference to `pspacec_'
pspases_testfc.o(.text+0x25b6): In function `MAIN__':
: undefined reference to `dpspacet_'
pspases_testfc.o(.text+0x2927): In function `MAIN__':
: undefined reference to `pspacec_'
pspases_testfc.o(.text+0x29b3): In function `MAIN__':
: undefined reference to `pspacec_'
pspases_testfc.o(.text+0x2a3b): In function `MAIN__':
: undefined reference to `pspacec_'
pspases_testfc.o(.text+0x2b10): In function `MAIN__':
: undefined reference to `checkb_ax_'
pspases_testfc.o(.text+0x2ef7): In function `MAIN__':
: undefined reference to `initrnd_'

Each of the undefined references are present in the libpspases.a library. I don't understand why the compiler fails to link them.

Thanks
sandeep

1 post / 0 new
For more complete information about compiler optimizations, see our Optimization Notice.