[Trilinos-Users] compiling Anasazi examples
Heroux, Michael A
maherou at sandia.gov
Fri Oct 2 15:26:12 MDT 2009
Chris,
I am not sure what is going on here. The missing function should be in the EpetraExt library. Are you building using shared libraries? If so, do you have your LD_LIBRARY_PATH set to point to the Trilinos libraries?
Mike
On 10/2/09 2:22 PM, "Christopher Gilbreth" <cngilbreth at gmail.com> wrote:
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/20a39bf2/attachment.html
More information about the Trilinos-Users
mailing list