[Trilinos-Users] compiling Anasazi examples

Christopher Gilbreth cngilbreth at gmail.com
Fri Oct 2 13:22:26 MDT 2009


Hi,

I'm trying out Trilinos for the first time. Thanks to a previous message, I
was able to get CMake working (2.8.0 rc2), but now am having trouble
compiling the Anasazi examples:

Scanning dependencies of target Anasazi_Epetra_BD_File_example

[ 87%] Building CXX object
packages/anasazi/epetra/example/BlockDavidson/CMakeFiles/Anasazi_Epetra_BD_File_example.dir/BlockDavidsonEpetraExFile.cpp.o

Linking CXX executable Anasazi_Epetra_BD_File_example.exe

CMakeFiles/Anasazi_Epetra_BD_File_example.dir/BlockDavidsonEpetraExFile.cpp.o:
In function `main':
/home/chris/local/trilinos-10.0-src/packages/anasazi/epetra/example/BlockDavidson/BlockDavidsonEpetraExFile.cpp:73:
undefined reference to `EpetraExt::readEpetraLinearSystem(std::string
const&, Epetra_Comm const&, Teuchos::RCP<Epetra_CrsMatrix>*,
Teuchos::RCP<Epetra_Map>*, Teuchos::RCP<Epetra_Vector>*,
Teuchos::RCP<Epetra_Vector>*, Teuchos::RCP<Epetra_Vector>*)'

/home/chris/local/trilinos-10.0-src/packages/anasazi/epetra/example/BlockDavidson/BlockDavidsonEpetraExFile.cpp:76:
undefined reference to `EpetraExt::readEpetraLinearSystem(std::string
const&, Epetra_Comm const&, Teuchos::RCP<Epetra_CrsMatrix>*,
Teuchos::RCP<Epetra_Map>*, Teuchos::RCP<Epetra_Vector>*,
Teuchos::RCP<Epetra_Vector>*, Teuchos::RCP<Epetra_Vector>*)'

make[2]: ***
[packages/anasazi/epetra/example/BlockDavidson/Anasazi_Epetra_BD_File_example.exe]
Error 1
make[1]: ***
[packages/anasazi/epetra/example/BlockDavidson/CMakeFiles/Anasazi_Epetra_BD_File_example.dir/all]
Error 2
make: *** [all] Error 2

(I added a few newlines above for readability.) I'm using the Intel compiler
(11.0) with OpenMPI. The packages I enabled were:

-D Trilinos_ENABLE_EpetraExt:BOOL=ON \
-D Trilinos_ENABLE_Teuchos:BOOL=ON \
-D Trilinos_ENABLE_Anasazi:BOOL=ON \
-D Trilinos_ENABLE_Didasko:BOOL=ON \
-D Trilinos_ENABLE_TESTS:BOOL=ON \

Any hints?

Thanks,
Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://software.sandia.gov/pipermail/trilinos-users/attachments/20091002/3ca748f7/attachment.html 


More information about the Trilinos-Users mailing list