[Trilinos-Users] Epetra - Problem making examples

Babak Fazel bkfazel at yahoo.com
Mon Feb 15 08:14:27 MST 2010


I configured and installed the Epetra packages in trilinos-8.0.8 under Cygwin with the following options. Nevertheless, it fails in making examples. For instance, I get the following error message when compiling the example code given in the package (trilinos-8.0.8/packages/epetra/example/verySimple/cxx_main.cpp), a copy of the code is also attached.
 
Any help will be appreciated.
---------------------------------------------------------------------------------------------------------------
./configure --disable-default-packages --enable-epetra --diable-export-makefiles --with-blas="D:/trilinos/BLAS/blas_Cygwin.a" --with-lapack="D:/trilinos/lapack-3-1-1/lapack_Cygwin.a"
----------------------------------------------------------------------------------------------------------------
 
 
$ g++ -g -o cxx_main.exe cxx_main.cpp
/cygdrive/d/DOCUME~1/Babak/LOCALS~1/Temp/ccfi8qWw.o: In function `main':
/cygdrive/d/trilinos/trilinos-8.0.8/packages/epetra/example/verysimple/cxx_mai  n.
cpp:39: undefined reference to `Epetra_SerialComm::Epetra_SerialComm()'
/cygdrive/d/trilinos/trilinos-8.0.8/packages/epetra/example/verysimple/cxx_main.
cpp:44: undefined reference to `Epetra_Map::Epetra_Map(int, int, Epetra_Comm con
st&)'
/cygdrive/d/trilinos/trilinos-8.0.8/packages/epetra/example/verysimple/cxx_main.
cpp:48: undefined reference to `Epetra_Vector::Epetra_Vector(Epetra_BlockMap con
st&, bool)'
/cygdrive/d/trilinos/trilinos-8.0.8/packages/epetra/example/verysimple/cxx_main.
cpp:49: undefined reference to `Epetra_Vector::Epetra_Vector(Epetra_BlockMap con
st&, bool)'
/cygdrive/d/trilinos/trilinos-8.0.8/packages/epetra/example/verysimple/cxx_main.
cpp:51: undefined reference to `Epetra_MultiVector::Random()'
/cygdrive/d/trilinos/trilinos-8.0.8/packages/epetra/example/verysimple/cxx_main.
cpp:52: undefined reference to `Epetra_MultiVector::Update(double, Epetra_MultiV
ector const&, double)'
/cygdrive/d/trilinos/trilinos-8.0.8/packages/epetra/example/verysimple/cxx_main.
cpp:55: undefined reference to `Epetra_MultiVector::Norm2(double*) const'
/cygdrive/d/trilinos/trilinos-8.0.8/packages/epetra/example/verysimple/cxx_main.
cpp:56: undefined reference to `Epetra_MultiVector::Norm2(double*) const'
/cygdrive/d/trilinos/trilinos-8.0.8/packages/epetra/example/verysimple/cxx_main.
cpp:61: undefined reference to `Epetra_Vector::~Epetra_Vector()'
/cygdrive/d/trilinos/trilinos-8.0.8/packages/epetra/example/verysimple/cxx_main.
cpp:61: undefined reference to `Epetra_Vector::~Epetra_Vector()'
/cygdrive/d/trilinos/trilinos-8.0.8/packages/epetra/example/verysimple/cxx_main.
cpp:61: undefined reference to `Epetra_Map::~Epetra_Map()'
/cygdrive/d/trilinos/trilinos-8.0.8/packages/epetra/example/verysimple/cxx_main.
cpp:61: undefined reference to `Epetra_SerialComm::~Epetra_SerialComm()'
/cygdrive/d/trilinos/trilinos-8.0.8/packages/epetra/example/verysimple/cxx_main.
cpp:61: undefined reference to `Epetra_Vector::~Epetra_Vector()'
/cygdrive/d/trilinos/trilinos-8.0.8/packages/epetra/example/verysimple/cxx_main.
cpp:61: undefined reference to `Epetra_Vector::~Epetra_Vector()'
/cygdrive/d/trilinos/trilinos-8.0.8/packages/epetra/example/verysimple/cxx_main.
cpp:61: undefined reference to `Epetra_Map::~Epetra_Map()'
/cygdrive/d/trilinos/trilinos-8.0.8/packages/epetra/example/verysimple/cxx_main.
cpp:61: undefined reference to `Epetra_SerialComm::~Epetra_SerialComm()'
collect2: ld returned 1 exit status
 


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://software.sandia.gov/pipermail/trilinos-users/attachments/20100215/ce185a78/attachment.html 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cxx_main.cpp
Url: https://software.sandia.gov/pipermail/trilinos-users/attachments/20100215/ce185a78/attachment.pl 


More information about the Trilinos-Users mailing list