[Trilinos-Users] Problem compiling Tri =?ISO-8859-1?Q?linos Example?=

trilinos at perfect-kreim.de trilinos at perfect-kreim.de
Fri Jan 18 10:00:45 MST 2008


Hello,

I have some trouble to compile a Multilevel-Example of Trilinos.
I am using the code from
/trilinos-8.0.3/packages/didasko/examples/ml/ex1.cpp
I did not change much. I only deleted the lines:
#include "Didasko_ConfigDefs.h"
#if defined(HAVE_DIDASKO_EPETRA) && defined(HAVE_DIDASKO_TEUCHOS) &&
defined(HAVE_DIDASKO_TRIUTILS)

and the according last 26 lines of the file.

Then when I try to compile the Code I got following error-message:
g++ -Wall -Wno-deprecated -DVERSION=\"0.1\" -O3 -g -o ML_Test
multilevel.o -I//home/kreim/trilinos-8.0.3/LINUX_SERIAL/include -lcblas
-lf77blas -latlas -llapack -L/usr/lib/gcc/i486-linux-gnu/3.4.6
-L/usr/lib/gcc/i486-linux-gnu/3.4.6/../../../../lib
-L/usr/lib/gcc/i486-linux-gnu/3.4.6/../../.. -L/lib/../lib
-L/usr/lib/../lib -lfrtbegin -lg2c -lm
-L/home/kreim/trilinos-8.0.3/LINUX_SERIAL/lib -lamesos  -laztecoo 
-lepetra  -lepetraext  -lgaleri  -lifpack  -lloca  -lml  -lnew_package 
-lnox  -lteuchos  -ltriutils
/home/kreim/trilinos-8.0.3/LINUX_SERIAL/lib/libml.a(ml_epetra_utils.o):
In function `ML_Operator_DiscreteLaplacian':
ml_epetra_utils.cpp:(.text+0x5adc): undefined reference to
`Epetra_FECrsMatrix::Epetra_FECrsMatrix(Epetra_DataAccess, Epetra_Map
const&, int, bool)'
ml_epetra_utils.cpp:(.text+0x6154): undefined reference to
`Epetra_FECrsMatrix::SumIntoGlobalValues(int, int const*, int, int
const*, double const*, int)'
[...]

And I have no idea where the problem is. Maybe you have some
suggestions.

Thanks a lot.

Best regards,

Michael

P.S.:
I installed trilinos with this configuration:
../configure --enable-default-packages --enable-ml --enable-epetra
--enable-teuchos --enable-aztecoo --enable-amesos --enable-didasko
--enable-epetraext --enable-triutils --enable-galeri
--enable-aztecoo-teuchos
--prefix=/home/kreim/trilinos-8.0.3/LINUX_SERIAL CFLAGS=-O2 CXXFLAGS=-O2
F77=g77 && make && make install






More information about the Trilinos-Users mailing list