I am becoming desperate with the following linking problem:
I try to compile a piece of testing code 'pdp.c'. The problem comes from the ScaLAPACK functions pdpttrs and pdpttrf (or more precisely, their c-counterparts with _).
The compiler appears to find them, but still gives an error:
/home/mikael/Libs/scalapack-2.0.2//libscalapack.a(pdpttrf.o): In function `pdpttrf_':
pdpttrf.f:(.text+0x4b4): undefined reference to `dpttrf_'
I am probably not linking everything necessary, but what am I missing? My compilation mantra looks like this:
mpicc -o pdp pdp.c -I/home/mikael/Libs/lapack-3.5.0/lapacke/ -L/home/mikael/Libs/lapack-3.5.0/ -llapacke -llapack -I/home/mikael/Libs/scalapack-2.0.2/ -L/home/mikael/Libs/scalapack-2.0.2/ -lscalapack -lblas -lgfortran -lm