[Dune] Problem with lam/mpi

Markus Blatt Markus.Blatt at ipvs.uni-stuttgart.de
Mon Oct 16 21:41:19 CEST 2006


> Even if your fix work, I would like to know why the hell the linker
> thinks it has link against the static libraries
> /usr/lib/liblamf77mpi.a /usr/lib/libmpi.a /usr/lib/liblam.a even
> though neither an environment variable nor the Makefile tells him so:
> 
> > g++ -g -O2 -o indexset
> > indexset-indexset.o  -L/home/vater/rechnen/dune/dune-common/common \
> > /home/vater/rechnen/dune/dune-common/common/.libs/libcommon.a \
> > /usr/lib/libstdc++.so -lm -lc -lgcc_s -llammpio \
> > /usr/lib/liblamf77mpi.a /usr/lib/libmpi.a /usr/lib/liblam.a -lutil -ldl

Would you please try whether the following succeeds in
dune-common/common:

g++ -g -O2 -o indexset indexset-indexset.o \
-L/home/vater/rechnen/dune/dune-common/common \
/home/vater/rechnen/dune/dune-common/common/.libs/libcommon.a \
/usr/lib/libstdc++.so -lm -lc -lgcc_s -llammpio -llamf77mpi -lmpi \
-llam -lutil -ldl 

I just asked for the output of mpiCC -showme:link previuously, but the
more interesting seems to be the ouput of

mpicc -showme:link

(Probably you have static libs here?)

Markus




More information about the Dune mailing list