Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

linking error using mpicc;

san_isn
Beginner
447 Views
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




0 Kudos
0 Replies
Reply