dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #15465
Re: dolfin + mtl + dorsal -> linking error
On Sunday 20 September 2009 13:24:13 Andre Massing wrote:
> Hi,
>
> I just reinstalled all fenics and related packages for testing/benchmark
> purposes via dorsal (except dolfin itself) and configure, compiled and
> install dolphin via scons.local. And just to be sure, I deleted every
> pkgconfig file I came across :) Unfortunately if I try to run the
> SConstruct file in the demo/function/eval/cpp directory I get the
> following linking error (I sourced dolfin.conf in beforehand...)
>
> scons: Reading SConscript files ...
> scons: done reading SConscript files.
> scons: Building targets ...
> mpic++ -o demo -Wl,-rpath,/home/andre/local/lib -pthread
> -Wl,--export-dynamic main.o
> -L/home/andre/homebase/software/packages/src/fenics-unstable/dolfin/local/l
> ib -L/home/andre/local/lib -L/usr/lib/atlas -lCGAL -lCGAL_Core -ldolfin
> -lboost_filesystem-mt -lz -lslepc -lml -lifpack -lamesos -laztecoo
> -lteuchos -lepetra -lepetraext -lumfpack -lboost_program_options-mt -lgts
> -lm -llapack -lblas -lcholmod -lamd -lcolamd -lparmetis -lmetis -lgmp
> -lgmpxx -lscotch -lscotcherr -lxml2 -lpetscts -lpetscsnes
> -lpetscksp -lpetscdm -lpetscmat -lpetscvec -lpetsc -lgthread-2.0 -lrt
> -lgmodule-2.0 -lglib-2.0
> /home/andre/homebase/software/packages/src/fenics-unstable/dolfin/local/lib
> /libdolfin.so: undefined reference to `mtl::vector::dense_vector<double,
> mtl::vector::parameters<mtl::tag::col_major,
> mtl::vector::non_fixed::dimension, false, false> >::size_type
> mtl::vector::num_rows<double,
> mtl::vector::parameters<mtl::tag::col_major,
> mtl::vector::non_fixed::dimension, false, false>
>
> >(mtl::vector::dense_vector<double,
>
> mtl::vector::parameters<mtl::tag::col_major,
> mtl::vector::non_fixed::dimension, false, false> > const&)'
> collect2: ld returned 1 exit status
> scons: *** [demo] Error 1
>
> Since mtl4 is so heavily template based I would expect some -I option to
> include right mtl paths, but I am just blindly guessing...
> Maybe any ideas what went wrong?
What version of mtl4 do you have. I have 6821 and it works fine.
You are showing the output from the linking stage and this should be fine
without any references to any mtl4 path, as mtl4 is (as far as I know) a pure
header library.
Johan
> Kind regards,
> Andre
>
> _______________________________________________
> DOLFIN-dev mailing list
> DOLFIN-dev@xxxxxxxxxx
> http://www.fenics.org/mailman/listinfo/dolfin-dev
>
Follow ups
References